src/Entity/Pcode.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PcodeRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PcodeRepository::class)
  8.  * @Auditable()
  9.  */
  10. class Pcode
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\Column(type="string", length=255)
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $label;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\PcodeCategory")
  23.      */
  24.     private $pcodeCategory;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Pcode")
  27.      * @ORM\JoinColumn(nullable=true)
  28.      */
  29.     private $parent;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $citizenName;
  34.     /**
  35.      * @ORM\Column(type="string", length=2, nullable=true)
  36.      */
  37.     private $ccFIPS;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Pcode::class)
  40.      */
  41.     private $district;
  42.     public function getId(): ?string
  43.     {
  44.         return $this->id;
  45.     }
  46.     public function setId(string $id): self
  47.     {
  48.         $this->id $id;
  49.         return $this;
  50.     }
  51.     public function getLabel(): ?string
  52.     {
  53.         return $this->label;
  54.     }
  55.     public function setLabel(string $label): self
  56.     {
  57.         $this->label $label;
  58.         return $this;
  59.     }
  60.     public function getParent(): ?self
  61.     {
  62.         return $this->parent;
  63.     }
  64.     public function setParent(?self $parent): self
  65.     {
  66.         $this->parent $parent;
  67.         return $this;
  68.     }
  69.     public function getPcodeCategory(): ?PcodeCategory
  70.     {
  71.         return $this->pcodeCategory;
  72.     }
  73.     public function setPcodeCategory(?PcodeCategory $pcodeCategory): self
  74.     {
  75.         $this->pcodeCategory $pcodeCategory;
  76.         return $this;
  77.     }
  78.     public function getCitizenName(): ?string
  79.     {
  80.         return $this->citizenName;
  81.     }
  82.     public function setCitizenName(?string $citizenName): self
  83.     {
  84.         $this->citizenName $citizenName;
  85.         return $this;
  86.     }
  87.     public function getCcFIPS(): ?string
  88.     {
  89.         return $this->ccFIPS;
  90.     }
  91.     public function setCcFIPS(?string $ccFIPS): self
  92.     {
  93.         $this->ccFIPS $ccFIPS;
  94.         return $this;
  95.     }
  96.     public function getDistrict(): ?self
  97.     {
  98.         return $this->district;
  99.     }
  100.     public function setDistrict(?self $district): self
  101.     {
  102.         $this->district $district;
  103.         return $this;
  104.     }
  105. }