src/Entity/ProductReviewComments.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductReviewCommentsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProductReviewCommentsRepository::class)]
  6. class ProductReviewComments
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\ManyToOne(targetEntityProductReviews::class, inversedBy'productReviewComments')]
  13.     private $review;
  14.     #[ORM\ManyToOne(targetEntityClinics::class, inversedBy'productReviewComments')]
  15.     private $clinic;
  16.     #[ORM\ManyToOne(targetEntityClinicUsers::class, inversedBy'productReviewComments')]
  17.     private $clinicUser;
  18.     #[ORM\Column(type'text')]
  19.     private $comment;
  20.     #[ORM\Column(type'datetime')]
  21.     private $modified;
  22.     #[ORM\Column(type'datetime')]
  23.     private $created;
  24.     #[ORM\Column(type'integer')]
  25.     private $isApproved;
  26.     public function __construct()
  27.     {
  28.         $this->setCreated(new \DateTime());
  29.         if ($this->getModified() == null) {
  30.             $this->setModified(new \DateTime());
  31.         }
  32.     }
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getReview(): ?ProductReviews
  38.     {
  39.         return $this->review;
  40.     }
  41.     public function setReview(?ProductReviews $review): self
  42.     {
  43.         $this->review $review;
  44.         return $this;
  45.     }
  46.     public function getClinic(): ?Clinics
  47.     {
  48.         return $this->clinic;
  49.     }
  50.     public function setClinic(?Clinics $clinic): self
  51.     {
  52.         $this->clinic $clinic;
  53.         return $this;
  54.     }
  55.     public function getClinicUser(): ?ClinicUsers
  56.     {
  57.         return $this->clinicUser;
  58.     }
  59.     public function setClinicUser(?ClinicUsers $clinicUser): self
  60.     {
  61.         $this->clinicUser $clinicUser;
  62.         return $this;
  63.     }
  64.     public function getComment(): ?string
  65.     {
  66.         return $this->comment;
  67.     }
  68.     public function setComment(string $comment): self
  69.     {
  70.         $this->comment $comment;
  71.         return $this;
  72.     }
  73.     public function getModified(): ?\DateTimeInterface
  74.     {
  75.         return $this->modified;
  76.     }
  77.     public function setModified(\DateTimeInterface $modified): self
  78.     {
  79.         $this->modified $modified;
  80.         return $this;
  81.     }
  82.     public function getCreated(): ?\DateTimeInterface
  83.     {
  84.         return $this->created;
  85.     }
  86.     public function setCreated(\DateTimeInterface $created): self
  87.     {
  88.         $this->created $created;
  89.         return $this;
  90.     }
  91.     public function getIsApproved(): ?int
  92.     {
  93.         return $this->isApproved;
  94.     }
  95.     public function setIsApproved(int $isApproved): self
  96.     {
  97.         $this->isApproved $isApproved;
  98.         return $this;
  99.     }
  100. }