<?php
namespace App\Entity;
use App\Repository\PatientPackageRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="v_patient_package")
* @ORM\Entity(repositoryClass=PatientPackageRepository::class)
*/
class PatientPackage
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity=Patient::class, inversedBy="packages")
* @ORM\JoinColumn(nullable=false)
*/
private $patient;
/**
* @ORM\ManyToOne(targetEntity=Package::class)
* @ORM\JoinColumn(nullable=false)
*/
private $package;
/**
* @ORM\Column(type="date")
*/
private $createdAt;
public function getId(): ?int
{
return $this->id;
}
public function getPatient(): ?Patient
{
return $this->patient;
}
public function setPatient(?Patient $patient): self
{
$this->patient = $patient;
return $this;
}
public function getPackage(): ?Package
{
return $this->package;
}
public function setPackage(?Package $package): self
{
$this->package = $package;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}