<?php
namespace App\Entity;
use App\Repository\NFHSRepository;
use DateTimeImmutable;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: NFHSRepository::class)]
class NFHS
{
#[ORM\Id]
#[ORM\GeneratedValue('CUSTOM')]
#[ORM\Column(type: Types::STRING, length: 36)]
#[ORM\CustomIdGenerator(class: 'App\Helpers\UUID')]
private string $_id;
#[ORM\Column(columnDefinition: 'CHAR(2) NOT NULL')]
private ?string $code = null;
#[ORM\Column(length: 255)]
private ?string $state = null;
#[ORM\Column]
private array $tfertility = [];
#[ORM\Column]
private array $afertility = [];
#[ORM\Column]
private array $married = [];
#[ORM\Column]
private array $pregnant = [];
#[ORM\Column]
private array $method = [];
#[ORM\Column]
private array $fsterilization = [];
#[ORM\Column]
private array $msterilization = [];
#[ORM\Column]
private array $tunmet = [];
#[ORM\Column]
private array $unmet = [];
#[ORM\Column]
private array $talked = [];
#[ORM\Column]
private array $sideffects = [];
#[ORM\Column]
private array $tsexratio = [];
#[ORM\Column]
private array $bsexratio = [];
#[ORM\Column]
private array $neonatal = [];
#[ORM\Column]
private array $mortality = [];
#[ORM\Column]
private array $underfive = [];
#[ORM\Column]
private array $dlinks = [];
#[ORM\Column(length: 500)]
private ?string $link = null;
#[ORM\Column(name: 'createdOn', options: ['default' => 'CURRENT_TIMESTAMP'])]
private \DateTimeImmutable $createdOn;
#[
ORM\Column(
name: 'updatedOn',
columnDefinition: "DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '(DC2Type:datetime_immutable)'"
)
]
private \DateTimeImmutable $updatedOn;
public function __construct()
{
$this->createdOn = new DateTimeImmutable();
$this->updatedOn = new DateTimeImmutable();
}
public function getId(): ?string
{
return $this->_id;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(string $code): self
{
$this->code = $code;
return $this;
}
public function getState(): ?string
{
return $this->state;
}
public function setState(string $state): self
{
$this->state = $state;
return $this;
}
public function getTfertility(): array
{
return $this->tfertility;
}
public function setTfertility(array $tfertility): self
{
$this->tfertility = $tfertility;
return $this;
}
public function getAfertility(): array
{
return $this->afertility;
}
public function setAfertility(array $afertility): self
{
$this->afertility = $afertility;
return $this;
}
public function getMarried(): array
{
return $this->married;
}
public function setMarried(array $married): self
{
$this->married = $married;
return $this;
}
public function getPregnant(): array
{
return $this->pregnant;
}
public function setPregnant(array $pregnant): self
{
$this->pregnant = $pregnant;
return $this;
}
public function getMethod(): array
{
return $this->method;
}
public function setMethod(array $method): self
{
$this->method = $method;
return $this;
}
public function getFsterilization(): array
{
return $this->fsterilization;
}
public function setFsterilization(array $fsterilization): self
{
$this->fsterilization = $fsterilization;
return $this;
}
public function getMsterilization(): array
{
return $this->msterilization;
}
public function setMsterilization(array $msterilization): self
{
$this->msterilization = $msterilization;
return $this;
}
public function getTunmet(): array
{
return $this->tunmet;
}
public function setTunmet(array $tunmet): self
{
$this->tunmet = $tunmet;
return $this;
}
public function getUnmet(): array
{
return $this->unmet;
}
public function setUnmet(array $unmet): self
{
$this->unmet = $unmet;
return $this;
}
public function getTalked(): array
{
return $this->talked;
}
public function setTalked(array $talked): self
{
$this->talked = $talked;
return $this;
}
public function getSideffects(): array
{
return $this->sideffects;
}
public function setSideffects(array $sideffects): self
{
$this->sideffects = $sideffects;
return $this;
}
public function getTsexratio(): array
{
return $this->tsexratio;
}
public function setTsexratio(array $tsexratio): self
{
$this->tsexratio = $tsexratio;
return $this;
}
public function getBsexratio(): array
{
return $this->bsexratio;
}
public function setBsexratio(array $bsexratio): self
{
$this->bsexratio = $bsexratio;
return $this;
}
public function getNeonatal(): array
{
return $this->neonatal;
}
public function setNeonatal(array $neonatal): self
{
$this->neonatal = $neonatal;
return $this;
}
public function getMortality(): array
{
return $this->mortality;
}
public function setMortality(array $mortality): self
{
$this->mortality = $mortality;
return $this;
}
public function getUnderfive(): array
{
return $this->underfive;
}
public function setUnderfive(array $underfive): self
{
$this->underfive = $underfive;
return $this;
}
public function getDlinks(): array
{
return $this->dlinks;
}
public function setDlinks(array $dlinks): self
{
$this->dlinks = $dlinks;
return $this;
}
public function getLink(): ?string
{
return $this->link;
}
public function setLink(string $link): self
{
$this->link = $link;
return $this;
}
public function getCreatedOn(): ?\DateTimeImmutable
{
return $this->createdOn;
}
public function setCreatedOn(\DateTimeImmutable $createdOn): self
{
$this->createdOn = $createdOn;
return $this;
}
public function getUpdatedOn(): ?\DateTimeImmutable
{
return $this->updatedOn;
}
public function setUpdatedOn(\DateTimeImmutable $updatedOn): self
{
$this->updatedOn = $updatedOn;
return $this;
}
}