src/Entity/Tranings.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TraningsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TraningsRepository::class)
  7.  */
  8. class Tranings
  9. {
  10.     use \App\Traits\CommonTrt;
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $title;
  21.     /**
  22.      * @ORM\Column(type="text", nullable=true)
  23.      */
  24.     private $intro;
  25.     /**
  26.      * @ORM\Column(type="text")
  27.      */
  28.     private $content;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $illustration;
  33.     /**
  34.      * @ORM\Column(type="string", length=255)
  35.      */
  36.     private $slug;
  37.     /**
  38.      * @ORM\Column(type="json", nullable=true)
  39.      */
  40.     private $images = [];
  41.     /**
  42.      * @ORM\Column(type="boolean")
  43.      */
  44.     private $isActive;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $icons;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $bannerImg;
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getTitle(): ?string
  58.     {
  59.         return $this->title;
  60.     }
  61.     public function setTitle(string $title): self
  62.     {
  63.         $this->title = $title;
  64.         return $this;
  65.     }
  66.     public function getIntro(): ?string
  67.     {
  68.         return $this->intro;
  69.     }
  70.     public function setIntro(?string $intro): self
  71.     {
  72.         $this->intro = $intro;
  73.         return $this;
  74.     }
  75.     public function getContent(): ?string
  76.     {
  77.         return $this->content;
  78.     }
  79.     public function setContent(string $content): self
  80.     {
  81.         $this->content = $content;
  82.         return $this;
  83.     }
  84.     public function getIllustration(): ?string
  85.     {
  86.         return $this->illustration;
  87.     }
  88.     public function setIllustration(?string $illustration): self
  89.     {
  90.         $this->illustration = $illustration;
  91.         return $this;
  92.     }
  93.     public function getSlug(): ?string
  94.     {
  95.         return $this->slug;
  96.     }
  97.     public function setSlug(string $slug): self
  98.     {
  99.         $this->slug = $slug;
  100.         return $this;
  101.     }
  102.     public function getImages(): ?array
  103.     {
  104.         return $this->images;
  105.     }
  106.     public function setImages(?array $images): self
  107.     {
  108.         $this->images = $images;
  109.         return $this;
  110.     }
  111.     public function getIsActive(): ?bool
  112.     {
  113.         return $this->isActive;
  114.     }
  115.     public function setIsActive(bool $isActive): self
  116.     {
  117.         $this->isActive = $isActive;
  118.         return $this;
  119.     }
  120.     public function getIcons(): ?string
  121.     {
  122.         return $this->icons;
  123.     }
  124.     public function setIcons(?string $icons): self
  125.     {
  126.         $this->icons = $icons;
  127.         return $this;
  128.     }
  129.     public function getBannerImg(): ?string
  130.     {
  131.         return $this->bannerImg;
  132.     }
  133.     public function setBannerImg(?string $bannerImg): self
  134.     {
  135.         $this->bannerImg = $bannerImg;
  136.         return $this;
  137.     }
  138. }