src/Entity/PatientPackage.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PatientPackageRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="v_patient_package")
  7.  * @ORM\Entity(repositoryClass=PatientPackageRepository::class)
  8.  */
  9. class PatientPackage
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\ManyToOne(targetEntity=Patient::class, inversedBy="packages")
  19.      * @ORM\JoinColumn(nullable=false)
  20.      */
  21.     private $patient;
  22.     /**
  23.      * @ORM\ManyToOne(targetEntity=Package::class)
  24.      * @ORM\JoinColumn(nullable=false)
  25.      */
  26.     private $package;
  27.     /**
  28.      * @ORM\Column(type="date")
  29.      */
  30.     private $createdAt;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getPatient(): ?Patient
  36.     {
  37.         return $this->patient;
  38.     }
  39.     public function setPatient(?Patient $patient): self
  40.     {
  41.         $this->patient $patient;
  42.         return $this;
  43.     }
  44.     public function getPackage(): ?Package
  45.     {
  46.         return $this->package;
  47.     }
  48.     public function setPackage(?Package $package): self
  49.     {
  50.         $this->package $package;
  51.         return $this;
  52.     }
  53.     public function getCreatedAt(): ?\DateTimeInterface
  54.     {
  55.         return $this->createdAt;
  56.     }
  57.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  58.     {
  59.         $this->createdAt $createdAt;
  60.         return $this;
  61.     }
  62. }