src/Entity/ServiceFeedback.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ServiceFeedbackRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassServiceFeedbackRepository::class)]
  6. class ServiceFeedback
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private int $id;
  12.     #[ORM\Column(type'datetime'nullabletrue)]
  13.     private mixed $date;
  14.     #[ORM\Column(type'text'nullabletrue)]
  15.     private ?string $commentairenull;
  16.     #[ORM\ManyToOne(targetEntityService::class, inversedBy'serviceFeedback')]
  17.     private mixed $service;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getDate(): ?\DateTimeInterface
  23.     {
  24.         return $this->date;
  25.     }
  26.     public function setDate(?\DateTimeInterface $date): self
  27.     {
  28.         $this->date $date;
  29.         return $this;
  30.     }
  31.     public function getCommentaire(): ?string
  32.     {
  33.         return $this->commentaire;
  34.     }
  35.     public function setCommentaire(?string $commentaire): self
  36.     {
  37.         $this->commentaire $commentaire;
  38.         return $this;
  39.     }
  40.     public function getService(): ?Service
  41.     {
  42.         return $this->service;
  43.     }
  44.     public function setService(?Service $service): self
  45.     {
  46.         $this->service $service;
  47.         return $this;
  48.     }
  49. }