src/Entity/Partners.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PartnersRepository;
  4. use App\Traits\CommonTrt;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=PartnersRepository::class)
  8.  */
  9. class Partners
  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 $name;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $illustration;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $slug;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $url;
  34.     /**
  35.      * @ORM\Column(type="boolean")
  36.      */
  37.     private $isActive;
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getName(): ?string
  43.     {
  44.         return $this->name;
  45.     }
  46.     public function setName(string $name): self
  47.     {
  48.         $this->name = $name;
  49.         return $this;
  50.     }
  51.     public function getIllustration(): ?string
  52.     {
  53.         return $this->illustration;
  54.     }
  55.     public function setIllustration(string $illustration): self
  56.     {
  57.         $this->illustration = $illustration;
  58.         return $this;
  59.     }
  60.     public function getSlug(): ?string
  61.     {
  62.         return $this->slug;
  63.     }
  64.     public function setSlug(string $slug): self
  65.     {
  66.         $this->slug = $slug;
  67.         return $this;
  68.     }
  69.     public function getUrl(): ?string
  70.     {
  71.         return $this->url;
  72.     }
  73.     public function setUrl(?string $url): self
  74.     {
  75.         $this->url = $url;
  76.         return $this;
  77.     }
  78.     public function isIsActive(): ?bool
  79.     {
  80.         return $this->isActive;
  81.     }
  82.     public function setIsActive(bool $isActive): self
  83.     {
  84.         $this->isActive = $isActive;
  85.         return $this;
  86.     }
  87. }