src/Entity/Feedback.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FeedbackRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassFeedbackRepository::class)]
  6. class Feedback
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column(length2000nullabletrue)]
  13.     private ?string $comment null;
  14.     #[ORM\Column]
  15.     private ?int $stars null;
  16.     #[ORM\ManyToOne(inversedBy'feedback')]
  17.     private ?DemandeService $demande null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getComment(): ?string
  23.     {
  24.         return $this->comment;
  25.     }
  26.     public function setComment(?string $comment): self
  27.     {
  28.         $this->comment $comment;
  29.         return $this;
  30.     }
  31.     public function getStars(): ?int
  32.     {
  33.         return $this->stars;
  34.     }
  35.     public function setStars(int $stars): self
  36.     {
  37.         $this->stars $stars;
  38.         return $this;
  39.     }
  40.     public function getDemande(): ?DemandeService
  41.     {
  42.         return $this->demande;
  43.     }
  44.     public function setDemande(?DemandeService $demande): self
  45.     {
  46.         $this->demande $demande;
  47.         return $this;
  48.     }
  49. }