<?php
namespace App\Entity;
use Symfony\Component\Serializer\Annotation\Groups;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: 'App\Repository\ChildrenRepository')]
class Children
{
#[Groups(['LogService'])]
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 255)]
private $fullName;
#[Groups(['LogService'])]
#[ORM\Column(type: 'string', length: 32, nullable: true)]
private $gender;
#[Groups(['LogService'])]
#[ORM\Column(type: 'date', nullable: true)]
private $birthDate;
#[ORM\ManyToOne(targetEntity: 'App\Entity\PersonalInfo', inversedBy: 'childrens')]
#[ORM\JoinColumn(nullable: false)]
private $personalInfo;
public function getId(): ?int
{
return $this->id;
}
public function getFullName(): ?string
{
return $this->fullName;
}
public function setFullName(string $fullName): self
{
$this->fullName = $fullName;
return $this;
}
public function getGender(): ?string
{
return $this->gender;
}
public function setGender(?string $gender): self
{
$this->gender = $gender;
return $this;
}
public function getBirthDate(): ?\DateTimeInterface
{
return $this->birthDate;
}
public function setBirthDate(?\DateTimeInterface $birthDate): self
{
$this->birthDate = $birthDate;
return $this;
}
public function getPersonalInfo(): ?PersonalInfo
{
return $this->personalInfo;
}
public function setPersonalInfo(?PersonalInfo $personalInfo): self
{
$this->personalInfo = $personalInfo;
return $this;
}
}