src/Entity/SectionTitle.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SectionTitleRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=SectionTitleRepository::class)
  9.  */
  10. class SectionTitle {
  11.     use \App\Traits\CommonTrt;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private $title;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $subtitle;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $image;
  30.     /**
  31.      * @ORM\ManyToOne(targetEntity=Tag::class, inversedBy="SectionTitle")
  32.      */
  33.     private $tag;
  34.     /**
  35.      * @ORM\Column(type="boolean")
  36.      */
  37.     private $isActive;
  38.     /**
  39.      * @ORM\Column(type="text", nullable=true)
  40.      */
  41.     private $summary;
  42.     /**
  43.      * @ORM\Column(type="string", length=255)
  44.      */
  45.     private $slug;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $bannerImg;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Lang::class, inversedBy="sectionTitles")
  52.      */
  53.     private $lang;
  54.     public function getId(): ?int {
  55.         return $this->id;
  56.     }
  57.     public function getTitle(): ?string {
  58.         return $this->title;
  59.     }
  60.     public function setTitle(string $title): self {
  61.         $this->title = $title;
  62.         return $this;
  63.     }
  64.     public function getSubtitle(): ?string {
  65.         return $this->subtitle;
  66.     }
  67.     public function setSubtitle(?string $subtitle): self {
  68.         $this->subtitle = $subtitle;
  69.         return $this;
  70.     }
  71.     public function getImage(): ?string {
  72.         return $this->image;
  73.     }
  74.     public function setImage(?string $image): self {
  75.         $this->image = $image;
  76.         return $this;
  77.     }
  78.     public function getTag(): ?Tag
  79.     {
  80.         return $this->tag;
  81.     }
  82.     public function setTag(?Tag $tag): self
  83.     {
  84.         $this->tag = $tag;
  85.         return $this;
  86.     }
  87.     public function isIsActive(): ?bool
  88.     {
  89.         return $this->isActive;
  90.     }
  91.     public function setIsActive(bool $isActive): self
  92.     {
  93.         $this->isActive = $isActive;
  94.         return $this;
  95.     }
  96.     public function getSummary(): ?string
  97.     {
  98.         return $this->summary;
  99.     }
  100.     public function setSummary(?string $summary): self
  101.     {
  102.         $this->summary = $summary;
  103.         return $this;
  104.     }
  105.     public function getSlug(): ?string
  106.     {
  107.         return $this->slug;
  108.     }
  109.     public function setSlug(string $slug): self
  110.     {
  111.         $this->slug = $slug;
  112.         return $this;
  113.     }
  114.     public function getBannerImg(): ?string
  115.     {
  116.         return $this->bannerImg;
  117.     }
  118.     public function setBannerImg(?string $bannerImg): self
  119.     {
  120.         $this->bannerImg = $bannerImg;
  121.         return $this;
  122.     }
  123.     public function getLang(): ?Lang
  124.     {
  125.         return $this->lang;
  126.     }
  127.     public function setLang(?Lang $lang): self
  128.     {
  129.         $this->lang = $lang;
  130.         return $this;
  131.     }
  132. }