src/Entity/Teams.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeamsRepository;
  4. use App\Traits\CommonTrt;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=TeamsRepository::class)
  8.  */
  9. class Teams
  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 $fullName;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $function;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $thumb;
  30.     /**
  31.      * @ORM\Column(type="boolean")
  32.      */
  33.     private $isActive;
  34.     /**
  35.      * @ORM\Column(type="string", length=255)
  36.      */
  37.     private $slug;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $orderNumber;
  42.     /**
  43.      * @ORM\Column(type="text", nullable=true)
  44.      */
  45.     private $content;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity=Lang::class, inversedBy="teams")
  48.      */
  49.     private $lang;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getFullName(): ?string
  55.     {
  56.         return $this->fullName;
  57.     }
  58.     public function setFullName(string $fullName): self
  59.     {
  60.         $this->fullName = $fullName;
  61.         return $this;
  62.     }
  63.     public function getFunction(): ?string
  64.     {
  65.         return $this->function;
  66.     }
  67.     public function setFunction(string $function): self
  68.     {
  69.         $this->function = $function;
  70.         return $this;
  71.     }
  72.     public function getThumb(): ?string
  73.     {
  74.         return $this->thumb;
  75.     }
  76.     public function setThumb(?string $thumb): self
  77.     {
  78.         $this->thumb = $thumb;
  79.         return $this;
  80.     }
  81.     public function isIsActive(): ?bool
  82.     {
  83.         return $this->isActive;
  84.     }
  85.     public function setIsActive(bool $isActive): self
  86.     {
  87.         $this->isActive = $isActive;
  88.         return $this;
  89.     }
  90.     public function getSlug(): ?string
  91.     {
  92.         return $this->slug;
  93.     }
  94.     public function setSlug(string $slug): self
  95.     {
  96.         $this->slug = $slug;
  97.         return $this;
  98.     }
  99.     public function getOrderNumber(): ?string
  100.     {
  101.         return $this->orderNumber;
  102.     }
  103.     public function setOrderNumber(?string $orderNumber): self
  104.     {
  105.         $this->orderNumber = $orderNumber;
  106.         return $this;
  107.     }
  108.     public function getContent(): ?string
  109.     {
  110.         return $this->content;
  111.     }
  112.     public function setContent(?string $content): self
  113.     {
  114.         $this->content = $content;
  115.         return $this;
  116.     }
  117.     public function getLang(): ?Lang
  118.     {
  119.         return $this->lang;
  120.     }
  121.     public function setLang(?Lang $lang): self
  122.     {
  123.         $this->lang = $lang;
  124.         return $this;
  125.     }
  126. }