src/Entity/GroupeMember.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GroupeMemberRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassGroupeMemberRepository::class)]
  7. class GroupeMember
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $title null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $genre null;
  17.     #[ORM\Column(length255)]
  18.     private ?string $name null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $firstname null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $pseudonyme null;
  23.     #[ORM\Column(typeTypes::DATE_MUTABLEnullabletrue)]
  24.     private ?\DateTimeInterface $birthdate null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $email null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $job null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $phone null;
  31.     #[ORM\ManyToOneinversedBy'members')]
  32.     private ?Groupe $groupe null;
  33.     public function getId(): ?int
  34.     {
  35.         return $this->id;
  36.     }
  37.     public function getTitle(): ?string
  38.     {
  39.         return $this->title;
  40.     }
  41.     public function setTitle(?string $title): self
  42.     {
  43.         $this->title $title;
  44.         return $this;
  45.     }
  46.     public function getGenre(): ?string
  47.     {
  48.         return $this->genre;
  49.     }
  50.     public function setGenre(string $genre): self
  51.     {
  52.         $this->genre $genre;
  53.         return $this;
  54.     }
  55.     public function getName(): ?string
  56.     {
  57.         return $this->name;
  58.     }
  59.     public function setName(string $name): self
  60.     {
  61.         $this->name $name;
  62.         return $this;
  63.     }
  64.     public function getFirstname(): ?string
  65.     {
  66.         return $this->firstname;
  67.     }
  68.     public function setFirstname(string $firstname): self
  69.     {
  70.         $this->firstname $firstname;
  71.         return $this;
  72.     }
  73.     public function getPseudonyme(): ?string
  74.     {
  75.         return $this->pseudonyme;
  76.     }
  77.     public function setPseudonyme(string $pseudonyme): self
  78.     {
  79.         $this->pseudonyme $pseudonyme;
  80.         return $this;
  81.     }
  82.     public function getBirthdate(): ?\DateTimeInterface
  83.     {
  84.         return $this->birthdate;
  85.     }
  86.     public function setBirthdate(?\DateTimeInterface $birthdate): self
  87.     {
  88.         $this->birthdate $birthdate;
  89.         return $this;
  90.     }
  91.     public function getEmail(): ?string
  92.     {
  93.         return $this->email;
  94.     }
  95.     public function setEmail(string $email): self
  96.     {
  97.         $this->email $email;
  98.         return $this;
  99.     }
  100.     public function getJob(): ?string
  101.     {
  102.         return $this->job;
  103.     }
  104.     public function setJob(string $job): self
  105.     {
  106.         $this->job $job;
  107.         return $this;
  108.     }
  109.     public function getPhone(): ?string
  110.     {
  111.         return $this->phone;
  112.     }
  113.     public function setPhone(string $phone): self
  114.     {
  115.         $this->phone $phone;
  116.         return $this;
  117.     }
  118.     public function getGroupe(): ?Groupe
  119.     {
  120.         return $this->groupe;
  121.     }
  122.     public function setGroupe(?Groupe $groupe): self
  123.     {
  124.         $this->groupe $groupe;
  125.         return $this;
  126.     }
  127.     public function __toString()
  128.     {
  129.         return $this->name;
  130.     }
  131. }