src/Entity/Team.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TeamRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=TeamRepository::class)
  7.  */
  8. class Team
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $name;
  20.     /**
  21.      * @ORM\Column(type="string", length=255)
  22.      */
  23.     private $image;
  24.     /**
  25.      * @ORM\Column(type="text", nullable=true)
  26.      */
  27.     private $description;
  28.     /**
  29.      * @ORM\Column(type="boolean", nullable=true)
  30.      */
  31.     private $status;
  32.     /**
  33.      * @ORM\Column(type="datetime_immutable", nullable=true)
  34.      */
  35.     private $created_at;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $fonction;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getName(): ?string
  45.     {
  46.         return $this->name;
  47.     }
  48.     public function setName(string $name): self
  49.     {
  50.         $this->name $name;
  51.         return $this;
  52.     }
  53.     public function getImage(): ?string
  54.     {
  55.         return $this->image;
  56.     }
  57.     public function setImage(string $image): self
  58.     {
  59.         $this->image $image;
  60.         return $this;
  61.     }
  62.     public function getDescription(): ?string
  63.     {
  64.         return $this->description;
  65.     }
  66.     public function setDescription(?string $description): self
  67.     {
  68.         $this->description $description;
  69.         return $this;
  70.     }
  71.     public function isStatus(): ?bool
  72.     {
  73.         return $this->status;
  74.     }
  75.     public function setStatus(?bool $status): self
  76.     {
  77.         $this->status $status;
  78.         return $this;
  79.     }
  80.     public function getCreatedAt(): ?\DateTimeImmutable
  81.     {
  82.         return $this->created_at;
  83.     }
  84.     public function setCreatedAt(?\DateTimeImmutable $created_at): self
  85.     {
  86.         $this->created_at $created_at;
  87.         return $this;
  88.     }
  89.     public function getFonction(): ?string
  90.     {
  91.         return $this->fonction;
  92.     }
  93.     public function setFonction(?string $fonction): self
  94.     {
  95.         $this->fonction $fonction;
  96.         return $this;
  97.     }
  98. }