src/Entity/ProductReviewLikes.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ProductReviewLikesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassProductReviewLikesRepository::class)]
  6. class ProductReviewLikes
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'datetime')]
  13.     private $modified;
  14.     #[ORM\Column(type'datetime')]
  15.     private $created;
  16.     #[ORM\ManyToOne(targetEntityProductReviews::class, inversedBy'productReviewLikes')]
  17.     private $productReview;
  18.     #[ORM\ManyToOne(targetEntityClinicUsers::class, inversedBy'productReviewLikes')]
  19.     private $clinicUser;
  20.     public function __construct()
  21.     {
  22.         $this->setCreated(new \DateTime());
  23.         if ($this->getModified() == null) {
  24.             $this->setModified(new \DateTime());
  25.         }
  26.     }
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getModified(): ?\DateTimeInterface
  32.     {
  33.         return $this->modified;
  34.     }
  35.     public function setModified(\DateTimeInterface $modified): self
  36.     {
  37.         $this->modified $modified;
  38.         return $this;
  39.     }
  40.     public function getCreated(): ?\DateTimeInterface
  41.     {
  42.         return $this->created;
  43.     }
  44.     public function setCreated(\DateTimeInterface $created): self
  45.     {
  46.         $this->created $created;
  47.         return $this;
  48.     }
  49.     public function getProductReview(): ?ProductReviews
  50.     {
  51.         return $this->productReview;
  52.     }
  53.     public function setProductReview(?ProductReviews $productReview): self
  54.     {
  55.         $this->productReview $productReview;
  56.         return $this;
  57.     }
  58.     public function getClinicUser(): ?ClinicUsers
  59.     {
  60.         return $this->clinicUser;
  61.     }
  62.     public function setClinicUser(?ClinicUsers $clinicUser): self
  63.     {
  64.         $this->clinicUser $clinicUser;
  65.         return $this;
  66.     }
  67. }