src/Entity/OutdoorSafety.php line 15

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Entity\BaseDomain;
  5. use App\Entity\Traits\EntityTimestampableTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Gedmo\Mapping\Annotation as Gedmo;
  8. /**
  9.  * @ORM\Entity
  10.  */
  11. class OutdoorSafety extends BaseDomain
  12. {
  13.     use EntityTimestampableTrait;
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private int $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private string $title;
  24.     /**
  25.      * @ORM\Column(type="text")
  26.      */
  27.     private string $description;
  28.     /**
  29.      * @ORM\Column(type="boolean", options={"default": false})
  30.      */
  31.     private bool $showOnHomepage;
  32.     /**
  33.      * @Gedmo\SortablePosition
  34.      * @ORM\Column(type="integer")
  35.      */
  36.     private int $sortPosition;
  37.     /**
  38.      * @ORM\Column(type="boolean", options={"default": true})
  39.      */
  40.     private bool $isVisible true;
  41.     public function getId(): int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getTitle(): string
  46.     {
  47.         return $this->title;
  48.     }
  49.     public function setTitle(string $title): self
  50.     {
  51.         $this->title $title;
  52.         return $this;
  53.     }
  54.     public function getDescription(): string
  55.     {
  56.         return $this->description;
  57.     }
  58.     public function setDescription(string $description): self
  59.     {
  60.         $this->description $description;
  61.         return $this;
  62.     }
  63.     public function isShowOnHomepage(): bool
  64.     {
  65.         return $this->showOnHomepage;
  66.     }
  67.     public function setShowOnHomepage(bool $showOnHomepage): self
  68.     {
  69.         $this->showOnHomepage $showOnHomepage;
  70.         return $this;
  71.     }
  72.     public function getSortPosition(): int
  73.     {
  74.         return $this->sortPosition;
  75.     }
  76.     public function setSortPosition(int $sortPosition): self
  77.     {
  78.         $this->sortPosition $sortPosition;
  79.         return $this;
  80.     }
  81.     public function isVisible(): bool
  82.     {
  83.         return $this->isVisible;
  84.     }
  85.     public function setIsVisible(bool $isVisible): self
  86.     {
  87.         $this->isVisible $isVisible;
  88.         return $this;
  89.     }
  90.     public function getLang(): string
  91.     {
  92.         return $this->lang;
  93.     }
  94.     public function setLang(string $lang): self
  95.     {
  96.         $this->lang $lang;
  97.         return $this;
  98.     }
  99. }