src/Entity/Services.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ServicesRepository;
  4. use App\Traits\CommonTrt;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ServicesRepository::class)
  8.  */
  9. class Services
  10. {
  11.     use 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="text", nullable=true)
  24.      */
  25.     private $content;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $slug;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $isActive;
  34.     /**
  35.      * @ORM\Column(type="boolean")
  36.      */
  37.     private $isHome;
  38.     /**
  39.      * @ORM\ManyToOne(targetEntity=Tag::class, inversedBy="services")
  40.      */
  41.     private $tag;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $illustration;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $bannerImg;
  50.     /**
  51.      * @ORM\ManyToOne(targetEntity=Lang::class, inversedBy="services")
  52.      */
  53.     private $langue;
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getTitle(): ?string
  59.     {
  60.         return $this->title;
  61.     }
  62.     public function setTitle(string $title): self
  63.     {
  64.         $this->title = $title;
  65.         return $this;
  66.     }
  67.     public function getContent(): ?string
  68.     {
  69.         return $this->content;
  70.     }
  71.     public function setContent(?string $content): self
  72.     {
  73.         $this->content = $content;
  74.         return $this;
  75.     }
  76.     public function getSlug(): ?string
  77.     {
  78.         return $this->slug;
  79.     }
  80.     public function setSlug(string $slug): self
  81.     {
  82.         $this->slug = $slug;
  83.         return $this;
  84.     }
  85.     public function isIsActive(): ?bool
  86.     {
  87.         return $this->isActive;
  88.     }
  89.     public function setIsActive(bool $isActive): self
  90.     {
  91.         $this->isActive = $isActive;
  92.         return $this;
  93.     }
  94.     public function isIsHome(): ?bool
  95.     {
  96.         return $this->isHome;
  97.     }
  98.     public function setIsHome(bool $isHome): self
  99.     {
  100.         $this->isHome = $isHome;
  101.         return $this;
  102.     }
  103.     public function getTag(): ?Tag
  104.     {
  105.         return $this->tag;
  106.     }
  107.     public function setTag(?Tag $tag): self
  108.     {
  109.         $this->tag = $tag;
  110.         return $this;
  111.     }
  112.     public function getIllustration(): ?string
  113.     {
  114.         return $this->illustration;
  115.     }
  116.     public function setIllustration(?string $illustration): self
  117.     {
  118.         $this->illustration = $illustration;
  119.         return $this;
  120.     }
  121.     public function getBannerImg(): ?string
  122.     {
  123.         return $this->bannerImg;
  124.     }
  125.     public function setBannerImg(?string $bannerImg): self
  126.     {
  127.         $this->bannerImg = $bannerImg;
  128.         return $this;
  129.     }
  130.     public function getLangue(): ?Lang
  131.     {
  132.         return $this->langue;
  133.     }
  134.     public function setLangue(?Lang $langue): self
  135.     {
  136.         $this->langue = $langue;
  137.         return $this;
  138.     }
  139. }