src/Entity/PcodeCategory.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PcodeCategoryRepository;
  4. use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PcodeCategoryRepository::class)
  8.  * @Auditable()
  9.  */
  10. class PcodeCategory
  11. {
  12.     /**
  13.      * @ORM\Id()
  14.      * @ORM\Column(type="string", length=20)
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $label;
  21.     /**
  22.      * @ORM\Column(type="integer", nullable=true)
  23.      */
  24.     private $level;
  25.     public function getId(): ?string
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function setId(string $id): self
  30.     {
  31.         $this->id $id;
  32.         return $this;
  33.     }
  34.     public function getLabel(): ?string
  35.     {
  36.         return $this->label;
  37.     }
  38.     public function setLabel(string $label): self
  39.     {
  40.         $this->label $label;
  41.         return $this;
  42.     }
  43.     public function getLevel(): ?int
  44.     {
  45.         return $this->level;
  46.     }
  47.     public function setLevel(?int $level): self
  48.     {
  49.         $this->level $level;
  50.         return $this;
  51.     }
  52. }