src/Entity/Icd10Disease.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\Icd10DiseaseRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassIcd10DiseaseRepository::class), ORM\Table(name'icd10_diseases')]
  6. class Icd10Disease implements \Stringable
  7. {
  8.     #[ORM\IdORM\GeneratedValueORM\Column(type'integer')]
  9.     private $id;
  10.     #[ORM\Column(type'string'length4)]
  11.     private $code;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $name;
  14.     #[ORM\ManyToOne(targetEntityIcd10CauseGroup::class, inversedBy'icd10Diseases')]
  15.     #[ORM\JoinColumn(name'cause_group_id'nullablefalse)]
  16.     private $causeGroup;
  17.     #[ORM\ManyToOne(targetEntityIcd10CauseSubGroup::class, inversedBy'icd10Diseases')]
  18.     #[ORM\JoinColumn(name'cause_sub_group_id'nullablefalse)]
  19.     private $causeSubGroup;
  20.     #[ORM\Column(type'text'nullabletrue)]
  21.     private $supportiveAdvice;
  22.     #[ORM\Column(type'text'nullabletrue)]
  23.     private $pharmaTreatment;
  24.     public function getId(): ?int
  25.     {
  26.         return $this->id;
  27.     }
  28.     public function getCode(): ?string
  29.     {
  30.         return $this->code;
  31.     }
  32.     public function setCode(string $code): self
  33.     {
  34.         $this->code $code;
  35.         return $this;
  36.     }
  37.     public function getName(): ?string
  38.     {
  39.         return $this->name;
  40.     }
  41.     public function setName(string $name): self
  42.     {
  43.         $this->name $name;
  44.         return $this;
  45.     }
  46.     public function getCauseGroup(): ?Icd10CauseGroup
  47.     {
  48.         return $this->causeGroup;
  49.     }
  50.     public function setCauseGroup(?Icd10CauseGroup $causeGroup): self
  51.     {
  52.         $this->causeGroup $causeGroup;
  53.         return $this;
  54.     }
  55.     public function getCauseSubGroup(): ?Icd10CauseSubGroup
  56.     {
  57.         return $this->causeSubGroup;
  58.     }
  59.     public function setCauseSubGroup(?Icd10CauseSubGroup $causeSubGroup): self
  60.     {
  61.         $this->causeSubGroup $causeSubGroup;
  62.         return $this;
  63.     }
  64.     public function getSupportiveAdvice(): ?string
  65.     {
  66.         return $this->supportiveAdvice;
  67.     }
  68.     public function setSupportiveAdvice(string $supportiveAdvice): self
  69.     {
  70.         $this->supportiveAdvice $supportiveAdvice;
  71.         return $this;
  72.     }
  73.     public function getPharmaTreatment(): ?string
  74.     {
  75.         return $this->pharmaTreatment;
  76.     }
  77.     public function setPharmaTreatment(string $pharmaTreatment): self
  78.     {
  79.         $this->pharmaTreatment $pharmaTreatment;
  80.         return $this;
  81.     }
  82.     public function __toString(): string
  83.     {
  84.         return (string) $this->getName();
  85.     }
  86. }