<?phpnamespace App\Entity;use App\Entity\Enum\PersonGender;use App\Entity\Traits\Sortable;use App\Repository\PersonCategoryRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: PersonCategoryRepository::class)]class PersonCategory{ use Sortable; #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column(type: 'integer')] private $id; #[ORM\Column(type: 'string', length: 100)] private $name; #[ORM\Column(type: 'string', length: 10, enumType: PersonGender::class)] private $gender; #[ORM\Column(type: 'date_immutable')] private $yearMin; #[ORM\Column(type: 'date_immutable')] private $yearMax; #[ORM\ManyToOne(targetEntity: Section::class, inversedBy: 'personCategories')] #[ORM\JoinColumn(nullable: false)] private $section; public function getId(): ?int { return $this->id; } public function getName(): ?string { return $this->name; } public function setName(string $name): self { $this->name = $name; return $this; } public function getGender(): ?PersonGender { return $this->gender; } public function setGender(PersonGender $gender): self { $this->gender = $gender; return $this; } public function getYearMin(): ?\DateTimeImmutable { return $this->yearMin; } public function setYearMin(\DateTimeImmutable $yearMin): self { $this->yearMin = $yearMin; return $this; } public function getYearMax(): ?\DateTimeImmutable { return $this->yearMax; } public function setYearMax(\DateTimeImmutable $yearMax): self { $this->yearMax = $yearMax; return $this; } public function getSection(): ?Section { return $this->section; } public function setSection(?Section $section): self { $this->section = $section; return $this; }}