<?php
namespace App\Entity;
use App\Repository\FeedbackRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FeedbackRepository::class)]
class Feedback
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 2000, nullable: true)]
private ?string $comment = null;
#[ORM\Column]
private ?int $stars = null;
#[ORM\ManyToOne(inversedBy: 'feedback')]
private ?DemandeService $demande = null;
public function getId(): ?int
{
return $this->id;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getStars(): ?int
{
return $this->stars;
}
public function setStars(int $stars): self
{
$this->stars = $stars;
return $this;
}
public function getDemande(): ?DemandeService
{
return $this->demande;
}
public function setDemande(?DemandeService $demande): self
{
$this->demande = $demande;
return $this;
}
}