<?phpnamespace App\Entity;use App\Repository\PcodeRepository;use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=PcodeRepository::class) * @Auditable() */class Pcode{ /** * @ORM\Id() * @ORM\Column(type="string", length=255) */ private $id; /** * @ORM\Column(type="string", length=255) */ private $label; /** * @ORM\ManyToOne(targetEntity="App\Entity\PcodeCategory") */ private $pcodeCategory; /** * @ORM\ManyToOne(targetEntity="App\Entity\Pcode") * @ORM\JoinColumn(nullable=true) */ private $parent; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $citizenName; /** * @ORM\Column(type="string", length=2, nullable=true) */ private $ccFIPS; /** * @ORM\ManyToOne(targetEntity=Pcode::class) */ private $district; public function getId(): ?string { return $this->id; } public function setId(string $id): self { $this->id = $id; return $this; } public function getLabel(): ?string { return $this->label; } public function setLabel(string $label): self { $this->label = $label; return $this; } public function getParent(): ?self { return $this->parent; } public function setParent(?self $parent): self { $this->parent = $parent; return $this; } public function getPcodeCategory(): ?PcodeCategory { return $this->pcodeCategory; } public function setPcodeCategory(?PcodeCategory $pcodeCategory): self { $this->pcodeCategory = $pcodeCategory; return $this; } public function getCitizenName(): ?string { return $this->citizenName; } public function setCitizenName(?string $citizenName): self { $this->citizenName = $citizenName; return $this; } public function getCcFIPS(): ?string { return $this->ccFIPS; } public function setCcFIPS(?string $ccFIPS): self { $this->ccFIPS = $ccFIPS; return $this; } public function getDistrict(): ?self { return $this->district; } public function setDistrict(?self $district): self { $this->district = $district; return $this; }}