src/Entity/Review.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReviewRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassReviewRepository::class)]
  7. class Review
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TEXT)]
  14.     private ?string $message null;
  15.     #[ORM\Column]
  16.     private ?int $rating null;
  17.     #[ORM\ManyToOne(inversedBy'reviews')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Doctor $doctor null;
  20.     #[ORM\ManyToOne(inversedBy'reviews')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?Patient $createdBy null;
  23.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  24.     private ?\DateTimeInterface $createAt null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getMessage(): ?string
  30.     {
  31.         return $this->message;
  32.     }
  33.     public function setMessage(string $message): static
  34.     {
  35.         $this->message $message;
  36.         return $this;
  37.     }
  38.     public function getRating(): ?int
  39.     {
  40.         return $this->rating;
  41.     }
  42.     public function setRating(int $rating): static
  43.     {
  44.         $this->rating $rating;
  45.         return $this;
  46.     }
  47.     public function getDoctor(): ?Doctor
  48.     {
  49.         return $this->doctor;
  50.     }
  51.     public function setDoctor(?Doctor $doctor): static
  52.     {
  53.         $this->doctor $doctor;
  54.         return $this;
  55.     }
  56.     public function getCreatedBy(): ?Patient
  57.     {
  58.         return $this->createdBy;
  59.     }
  60.     public function setCreatedBy(?Patient $createdBy): static
  61.     {
  62.         $this->createdBy $createdBy;
  63.         return $this;
  64.     }
  65.     public function getCreateAt(): ?\DateTimeInterface
  66.     {
  67.         return $this->createAt;
  68.     }
  69.     public function setCreateAt(\DateTimeInterface $createAt): static
  70.     {
  71.         $this->createAt $createAt;
  72.         return $this;
  73.     }
  74. }