src/Entity/Formation.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\FormationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassFormationRepository::class)]
  6. class Formation
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private $id;
  12.     #[ORM\Column(type'string'length255)]
  13.     private $organisation;
  14.     #[ORM\Column(type'string'length255)]
  15.     private $diploma;
  16.     #[ORM\Column(type'string'length255)]
  17.     private $begin;
  18.     #[ORM\Column(type'string'length255)]
  19.     private $end;
  20.     #[ORM\ManyToOne(targetEntityCoachInfo::class, inversedBy'formation')]
  21.     private $coach;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getOrganisation(): ?string
  27.     {
  28.         return $this->organisation;
  29.     }
  30.     public function setOrganisation(string $organisation): self
  31.     {
  32.         $this->organisation $organisation;
  33.         return $this;
  34.     }
  35.     public function getDiploma(): ?string
  36.     {
  37.         return $this->diploma;
  38.     }
  39.     public function setDiploma(string $diploma): self
  40.     {
  41.         $this->diploma $diploma;
  42.         return $this;
  43.     }
  44.     public function getBegin(): ?string
  45.     {
  46.         return $this->begin;
  47.     }
  48.     public function setBegin(string $begin): self
  49.     {
  50.         $this->begin $begin;
  51.         return $this;
  52.     }
  53.     public function getEnd(): ?string
  54.     {
  55.         return $this->end;
  56.     }
  57.     public function setEnd(string $end): self
  58.     {
  59.         $this->end $end;
  60.         return $this;
  61.     }
  62.     public function getCoach(): ?CoachInfo
  63.     {
  64.         return $this->coach;
  65.     }
  66.     public function setCoach(?CoachInfo $coach): self
  67.     {
  68.         $this->coach $coach;
  69.         return $this;
  70.     }
  71. }