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, nullable=true)
  24.      */
  25.     private $thumb;
  26.     /**
  27.      * @ORM\Column(type="boolean")
  28.      */
  29.     private $isActive;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $url;
  34.     public function getId(): ?int
  35.     {
  36.         return $this->id;
  37.     }
  38.     public function getName(): ?string
  39.     {
  40.         return $this->name;
  41.     }
  42.     public function setName(string $name): self
  43.     {
  44.         $this->name = $name;
  45.         return $this;
  46.     }
  47.     public function getThumb(): ?string
  48.     {
  49.         return $this->thumb;
  50.     }
  51.     public function setThumb(?string $thumb): self
  52.     {
  53.         $this->thumb = $thumb;
  54.         return $this;
  55.     }
  56.     public function isIsActive(): ?bool
  57.     {
  58.         return $this->isActive;
  59.     }
  60.     public function setIsActive(bool $isActive): self
  61.     {
  62.         $this->isActive = $isActive;
  63.         return $this;
  64.     }
  65.     public function getUrl(): ?string
  66.     {
  67.         return $this->url;
  68.     }
  69.     public function setUrl(?string $url): self
  70.     {
  71.         $this->url = $url;
  72.         return $this;
  73.     }
  74. }