src/Entity/CaseReferral.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CaseReferralRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. #[ORM\Entity(repositoryClassCaseReferralRepository::class), ORM\Table(name'case_referrals')]
  7. class CaseReferral
  8. {
  9.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\ManyToOne(targetEntityCases::class, inversedBy'referrals')]
  12.     #[ORM\JoinColumn(name'case_id'nullablefalse)]
  13.     private $case;
  14.     #[ORM\ManyToOne(targetEntityHospital::class), ORM\JoinColumn(nullablefalse)]
  15.     private $hospital;
  16.     #[ORM\Column(type'text'nullabletrue)]
  17.     private $expertOpinion;
  18.     #[ORM\ManyToOne(targetEntityUser::class), ORM\JoinColumn(name'doctor_id'nullablefalse)]
  19.     private $doctor;
  20.     #[ORM\Column(type'string'length255)]
  21.     private $email;
  22.     #[ORM\Column(type'boolean')]
  23.     private bool $isOpinion false;
  24.     #[ORM\Column(type'boolean')]
  25.     private bool $isOther false;
  26.     #[ORM\Column(type'text'nullabletrue)]
  27.     private $notes;
  28.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  29.     private $createdAt;
  30.     #[Gedmo\Timestampable(on'update'), ORM\Column(type'datetime')]
  31.     private $updatedAt;
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getCase(): ?Cases
  37.     {
  38.         return $this->case;
  39.     }
  40.     public function setCase(?Cases $case): self
  41.     {
  42.         $this->case $case;
  43.         return $this;
  44.     }
  45.     public function getHospital(): ?Hospital
  46.     {
  47.         return $this->hospital;
  48.     }
  49.     public function setHospital(?Hospital $hospital): self
  50.     {
  51.         $this->hospital $hospital;
  52.         return $this;
  53.     }
  54.     public function getExpertOpinion(): ?string
  55.     {
  56.         return $this->expertOpinion;
  57.     }
  58.     public function setExpertOpinion(string $expertOpinion): self
  59.     {
  60.         $this->expertOpinion $expertOpinion;
  61.         return $this;
  62.     }
  63.     public function getDoctor(): ?User
  64.     {
  65.         return $this->doctor;
  66.     }
  67.     public function setDoctor(?User $doctor): self
  68.     {
  69.         $this->doctor $doctor;
  70.         return $this;
  71.     }
  72.     public function getEmail(): ?string
  73.     {
  74.         return $this->email;
  75.     }
  76.     public function setEmail(?string $email): self
  77.     {
  78.         $this->email $email;
  79.         return $this;
  80.     }
  81.     public function getIsOpinion(): ?bool
  82.     {
  83.         return $this->isOpinion;
  84.     }
  85.     public function setIsOpinion(bool $isOpinion): self
  86.     {
  87.         $this->isOpinion $isOpinion;
  88.         return $this;
  89.     }
  90.     public function getIsOther(): ?bool
  91.     {
  92.         return $this->isOther;
  93.     }
  94.     public function setIsOther(bool $isOther): self
  95.     {
  96.         $this->isOther $isOther;
  97.         return $this;
  98.     }
  99.     public function getNotes(): ?string
  100.     {
  101.         return $this->notes;
  102.     }
  103.     public function setNotes(?string $notes): self
  104.     {
  105.         $this->notes $notes;
  106.         return $this;
  107.     }
  108.     public function getCreatedAt(): ?\DateTimeInterface
  109.     {
  110.         return $this->createdAt;
  111.     }
  112.     public function getUpdatedAt(): ?\DateTimeInterface
  113.     {
  114.         return $this->updatedAt;
  115.     }
  116. }