src/Entity/CaseLaboratory.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CaseLaboratoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. #[ORM\Entity(repositoryClassCaseLaboratoryRepository::class), ORM\Table(name'case_lab_tests')]
  7. class CaseLaboratory
  8. {
  9.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  10.     private $id;
  11.     #[ORM\ManyToOne(targetEntityCases::class, inversedBy'labTests'), ORM\JoinColumn(name'case_id'nullablefalse)]
  12.     private $case;
  13.     #[ORM\ManyToOne(targetEntityLabTest::class), ORM\JoinColumn(nullablefalse)]
  14.     private $labTest;
  15.     #[ORM\Column(type'string'length255nullabletrue)]
  16.     private $instruct;
  17.     #[ORM\Column(type'string'length255nullabletrue)]
  18.     private $fileUrl;
  19.     #[ORM\ManyToOne(targetEntitySample::class)]
  20.     private $sample;
  21.     #[ORM\ManyToOne(targetEntityTestMethod::class)]
  22.     private $method;
  23.     #[ORM\ManyToOne(targetEntityHospital::class), ORM\JoinColumn(nullablefalse)]
  24.     private $hospital;
  25.     #[ORM\Column(type'string'length255nullabletrue)]
  26.     private $result;
  27.     #[ORM\Column(type'boolean')]
  28.     private bool $isReferral false;
  29.     #[ORM\Column(type'boolean')]
  30.     private bool $isOpinion false;
  31.     #[Gedmo\Blameable(on'create'), ORM\ManyToOne(targetEntityUser::class), ORM\JoinColumn(name'created_by')]
  32.     private $createdBy;
  33.     #[Gedmo\Blameable(on'update'), ORM\ManyToOne(targetEntityUser::class), ORM\JoinColumn(name'updated_by')]
  34.     private $updatedBy;
  35.     #[Gedmo\Timestampable(on'create'), ORM\Column(type'datetime')]
  36.     private $createdAt;
  37.     #[Gedmo\Timestampable(on'update'), ORM\Column(type'datetime')]
  38.     private $updatedAt;
  39.     public function getId(): ?int
  40.     {
  41.         return $this->id;
  42.     }
  43.     public function getCase(): ?Cases
  44.     {
  45.         return $this->case;
  46.     }
  47.     public function setCase(?Cases $case): self
  48.     {
  49.         $this->case $case;
  50.         return $this;
  51.     }
  52.     public function getLabTest(): ?LabTest
  53.     {
  54.         return $this->labTest;
  55.     }
  56.     public function setLabTest(?LabTest $labTest): self
  57.     {
  58.         $this->labTest $labTest;
  59.         return $this;
  60.     }
  61.     public function getInstruct(): ?string
  62.     {
  63.         return $this->instruct;
  64.     }
  65.     public function setInstruct(?string $instruct): self
  66.     {
  67.         $this->instruct $instruct;
  68.         return $this;
  69.     }
  70.     public function getFileUrl(): ?string
  71.     {
  72.         return $this->fileUrl;
  73.     }
  74.     public function setFileUrl(?string $fileUrl): self
  75.     {
  76.         $this->fileUrl $fileUrl;
  77.         return $this;
  78.     }
  79.     public function getResult(): ?string
  80.     {
  81.         return $this->result;
  82.     }
  83.     public function setResult(string $result): self
  84.     {
  85.         $this->result $result;
  86.         return $this;
  87.     }
  88.     public function getSample(): ?Sample
  89.     {
  90.         return $this->sample;
  91.     }
  92.     public function setSample(?Sample $sample): self
  93.     {
  94.         $this->sample $sample;
  95.         return $this;
  96.     }
  97.     public function getHospital(): ?Hospital
  98.     {
  99.         return $this->hospital;
  100.     }
  101.     public function setHospital(?Hospital $hospital): self
  102.     {
  103.         $this->hospital $hospital;
  104.         return $this;
  105.     }
  106.     public function getMethod(): ?TestMethod
  107.     {
  108.         return $this->method;
  109.     }
  110.     public function setMethod(?TestMethod $method): self
  111.     {
  112.         $this->method $method;
  113.         return $this;
  114.     }
  115.     public function getIsReferral(): ?bool
  116.     {
  117.         return $this->isReferral;
  118.     }
  119.     public function setIsReferral(bool $isReferral): self
  120.     {
  121.         $this->isReferral $isReferral;
  122.         return $this;
  123.     }
  124.     public function getIsOpinion(): ?bool
  125.     {
  126.         return $this->isOpinion;
  127.     }
  128.     public function setIsOpinion(bool $isOpinion): self
  129.     {
  130.         $this->isOpinion $isOpinion;
  131.         return $this;
  132.     }
  133.     public function getCreatedBy(): ?User
  134.     {
  135.         return $this->createdBy;
  136.     }
  137.     public function getUpdatedBy(): ?User
  138.     {
  139.         return $this->updatedBy;
  140.     }
  141.     public function getCreatedAt(): ?\DateTimeInterface
  142.     {
  143.         return $this->createdAt;
  144.     }
  145.     public function getUpdatedAt(): ?\DateTimeInterface
  146.     {
  147.         return $this->updatedAt;
  148.     }
  149. }