<?phpnamespace App\Entity;use App\Repository\BirthCertificateRepository;use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=BirthCertificateRepository::class) * @Auditable() */class BirthCertificate{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Identite::class) * @ORM\JoinColumn(nullable=false) */ private $dad; /** * @ORM\ManyToOne(targetEntity=Identite::class) * @ORM\JoinColumn(nullable=false) */ private $mother; /** * @ORM\Column(type="datetime") */ private $dateCreate; /** * @ORM\ManyToOne(targetEntity="App\Entity\Users") * @ORM\JoinColumn(nullable=false) */ private $userCreate; /** * @ORM\Column(type="datetime", nullable=true) */ private $dateUpdate; /** * @ORM\ManyToOne(targetEntity=Users::class) */ private $userUpdate; /** * @ORM\ManyToOne(targetEntity=Identite::class) * @ORM\JoinColumn(nullable=false) */ private $child; /** * @ORM\ManyToOne(targetEntity=Folder::class) */ private $folder; /** * @ORM\Column(type="integer", nullable=true) */ private $status; /** * @ORM\Column(type="boolean") */ private $isDeleted; /** * @ORM\ManyToOne(targetEntity=Sites::class) */ private $site; public function __construct() { $this->isDeleted = false; $this->status = 1; $this->dateCreate = new \DateTime(); } public function getId(): ?int { return $this->id; } public function getIsDeleted(): ?bool { return $this->isDeleted; } public function setIsDeleted(bool $isDeleted): self { $this->isDeleted = $isDeleted; return $this; } public function getDad(): ?Identite { return $this->dad; } public function setDad(?Identite $dad): self { $this->dad = $dad; return $this; } public function getUserCreate(): ?Users { return $this->userCreate; } public function setUserCreate(?Users $userCreate): self { $this->userCreate = $userCreate; return $this; } public function getMother(): ?Identite { return $this->mother; } public function setMother(?Identite $mother): self { $this->mother = $mother; return $this; } public function getChild(): ?Identite { return $this->child; } public function setChild(?Identite $child): self { $this->child = $child; return $this; } public function getFolder(): ?Folder { return $this->folder; } public function setFolder(?Folder $folder): self { $this->folder = $folder; return $this; } public function getDateCreate(): ?\DateTimeInterface { return $this->dateCreate; } public function setDateCreate(\DateTimeInterface $dateCreate): self { $this->dateCreate = $dateCreate; return $this; } public function getUserUpdate(): ?Users { return $this->userUpdate; } public function setUserUpdate(?Users $userUpdate): self { $this->userUpdate = $userUpdate; return $this; } public function getDateUpdate(): ?\DateTimeInterface { return $this->dateUpdate; } public function setDateUpdate(?\DateTimeInterface $dateUpdate): self { $this->dateUpdate = $dateUpdate; return $this; } public function getStatus(): ?int { return $this->status; } public function setStatus(?int $status): self { $this->status = $status; return $this; } public function getSite(): ?Sites { return $this->site; } public function setSite(?Sites $site): self { $this->site = $site; return $this; }}