src/Entity/OpportunitiesCategories.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\OpportunitiesCategoriesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=OpportunitiesCategoriesRepository::class)
  7.  */
  8. class OpportunitiesCategories
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $label;
  20.     /**
  21.      * @ORM\Column(type="text", nullable=true)
  22.      */
  23.     private $description;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $slug;
  28.     
  29.     /**
  30.      * @ORM\Column(name="isEnabled", type="boolean", nullable=true)
  31.      */
  32.     private $isEnabled;
  33.     public function __construct()
  34.     {
  35.         $this->isEnabled false;
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getLabel(): ?string
  42.     {
  43.         return $this->label;
  44.     }
  45.     public function setLabel(string $label): self
  46.     {
  47.         $this->label $label;
  48.         return $this;
  49.     }
  50.     public function getDescription(): ?string
  51.     {
  52.         return $this->description;
  53.     }
  54.     public function setDescription(?string $description): self
  55.     {
  56.         $this->description $description;
  57.         return $this;
  58.     }
  59.     public function __toString()
  60.     {
  61.         return $this->label;
  62.     }
  63.     public function getSlug(): ?string
  64.     {
  65.         return $this->slug;
  66.     }
  67.     public function setSlug(?string $slug): self
  68.     {
  69.         $this->slug $slug;
  70.         return $this;
  71.     }
  72.     public function getIsEnabled(): ?bool
  73.     {
  74.         return $this->isEnabled;
  75.     }
  76.     public function setIsEnabled(?bool $isEnabled): self
  77.     {
  78.         $this->isEnabled $isEnabled;
  79.         return $this;
  80.     }
  81. }