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 $firstName;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private $lastName;
  26.     /**
  27.      * @ORM\Column(type="string", length=255)
  28.      */
  29.     private $function;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $illustration;
  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 $url;
  50.     public function getId(): ?int
  51.     {
  52.         return $this->id;
  53.     }
  54.     public function getFirstName(): ?string
  55.     {
  56.         return $this->firstName;
  57.     }
  58.     public function setFirstName(string $firstName): self
  59.     {
  60.         $this->firstName = $firstName;
  61.         return $this;
  62.     }
  63.     public function getLastName(): ?string
  64.     {
  65.         return $this->lastName;
  66.     }
  67.     public function setLastName(string $lastName): self
  68.     {
  69.         $this->lastName = $lastName;
  70.         return $this;
  71.     }
  72.     public function getFunction(): ?string
  73.     {
  74.         return $this->function;
  75.     }
  76.     public function setFunction(string $function): self
  77.     {
  78.         $this->function = $function;
  79.         return $this;
  80.     }
  81.     public function getIllustration(): ?string
  82.     {
  83.         return $this->illustration;
  84.     }
  85.     public function setIllustration(?string $illustration): self
  86.     {
  87.         $this->illustration = $illustration;
  88.         return $this;
  89.     }
  90.     public function isIsActive(): ?bool
  91.     {
  92.         return $this->isActive;
  93.     }
  94.     public function setIsActive(bool $isActive): self
  95.     {
  96.         $this->isActive = $isActive;
  97.         return $this;
  98.     }
  99.     public function getFullname()
  100.     {
  101.         return $this->firstName.' '.$this->lastName;
  102.     }
  103.     /**
  104.      * @return mixed
  105.      */
  106.     public function getSummary()
  107.     {
  108.         return $this->summary;
  109.     }
  110.     /**
  111.      * @param mixed $summary
  112.      */
  113.     public function setSummary($summary): void
  114.     {
  115.         $this->summary = $summary;
  116.     }
  117.     public function getSlug(): ?string
  118.     {
  119.         return $this->slug;
  120.     }
  121.     public function setSlug(string $slug): self
  122.     {
  123.         $this->slug = $slug;
  124.         return $this;
  125.     }
  126.     public function getUrl(): ?string
  127.     {
  128.         return $this->url;
  129.     }
  130.     public function setUrl(?string $url): self
  131.     {
  132.         $this->url = $url;
  133.         return $this;
  134.     }
  135. }