<?php
namespace App\Entity;
use App\Repository\PatientRepository;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as Serializer;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
/**
*
* @ORM\Entity(repositoryClass=PatientRepository::class)
* @ORM\Table(name = "neema.patient")
* @UniqueEntity("patient_id")
*/
class Patient
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=100)
*/
private $patientName;
/**
* @ORM\Column(type="string", length=12)
*/
private $phone;
/**
* @ORM\Column(type="string", length=100)
*/
private $reason;
/**
* @ORM\Column(type="string", length=50)
*/
private $location;
/**
* @ORM\ManyToOne(targetEntity=Branch::class)
* @ORM\JoinColumn(nullable=false)
*/
private $branch;
/**
* @Serializer\Type("DateTime<'Y-m-d H:i:s'>")
* @ORM\Column(type="date")
*/
private $appointment_date;
// /**
// * @Serializer\Type("DateTime<'Y-m-d H:i:s'>")
// * @ORM\Column(type="datetime")
// *
// * @ORM\GeneratedValue
// */
// private $createdAt;
/**
* @ORM\ManyToOne(targetEntity=User::class)
* @ORM\JoinColumn(nullable=false)
*/
private $user;
/**
* @ORM\Column(type="string",length=200, options={"default": "uuid()"}, unique=true)
*
private $patientId; */
// /**
// * @ORM\Column(type="string",nullable=true)
// * @ORM\GeneratedValue
// */
// private $patientId;
/**
* @ORM\Column(type="boolean")
*/
private $isSeen;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $seenAt;
// /**
// * @ORM\Column(type="string", nullable=true)
// * @ORM\GeneratedValue
// */
// private $uniqueId;
public function getId(): ?int
{
return $this->id;
}
/**
* @return mixed
*/
public function getPatientName()
{
return $this->patientName;
}
/**
* @param mixed $patientName
*/
public function setPatientName($patientName): void
{
$this->patientName = $patientName;
}
/**
* @return mixed
*/
public function getPhone()
{
return $this->phone;
}
/**
* @param mixed $phone
*/
public function setPhone($phone): void
{
$this->phone = $phone;
}
/**
* @return mixed
*/
public function getReason()
{
return $this->reason;
}
/**
* @param mixed $reason
*/
public function setReason($reason): void
{
$this->reason = $reason;
}
/**
* @return mixed
*/
public function getLocation()
{
return $this->location;
}
/**
* @param mixed $location
*/
public function setLocation($location): void
{
$this->location = $location;
}
/**
* @return mixed
*/
public function getBranch()
{
return $this->branch;
}
/**
* @param mixed $branch
*/
public function setBranch($branch): void
{
$this->branch = $branch;
}
/**
* @return mixed
*/
public function getAppointmentDate()
{
return $this->appointment_date;
}
/**
* @param mixed $appointment_date
*/
public function setAppointmentDate($appointment_date): void
{
$this->appointment_date = $appointment_date;
}
/**
* @return mixed
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* @param mixed $createdAt
*/
public function setCreatedAt($createdAt): void
{
$this->createdAt = $createdAt;
}
/**
* @return mixed
*/
public function getUser()
{
return $this->user;
}
/**
* @param mixed $user
*/
public function setUser($user): void
{
$this->user = $user;
}
// /**
// * @return mixed
// */
// public function getPatientId()
// {
// return $this->patientId;
// }
//
// /**
// * @param mixed $patientId
// */
// public function setPatientId($patientId): void
// {
// $this->patientId = $patientId;
// }
/**
* @return mixed
*/
public function getIsSeen()
{
return $this->isSeen;
}
/**
* @param mixed $isSeen
*/
public function setIsSeen($isSeen): void
{
$this->isSeen = $isSeen;
}
/**
* @return mixed
*/
public function getSeenAt()
{
return $this->seenAt;
}
/**
* @param mixed $seenAt
*/
public function setSeenAt($seenAt): void
{
$this->seenAt = $seenAt;
}
// /**
// * @return mixed
// */
// public function getUniqueId()
// {
// return $this->uniqueId;
// }
//
// /**
// * @param mixed $uniqueId
// */
// public function setUniqueId($uniqueId): void
// {
// $this->uniqueId = $uniqueId;
// }
}