<?php
namespace App\Entity;
use App\Repository\FormationRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FormationRepository::class)]
class Formation
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255)]
private $organisation;
#[ORM\Column(type: 'string', length: 255)]
private $diploma;
#[ORM\Column(type: 'string', length: 255)]
private $begin;
#[ORM\Column(type: 'string', length: 255)]
private $end;
#[ORM\ManyToOne(targetEntity: CoachInfo::class, inversedBy: 'formation')]
private $coach;
public function getId(): ?int
{
return $this->id;
}
public function getOrganisation(): ?string
{
return $this->organisation;
}
public function setOrganisation(string $organisation): self
{
$this->organisation = $organisation;
return $this;
}
public function getDiploma(): ?string
{
return $this->diploma;
}
public function setDiploma(string $diploma): self
{
$this->diploma = $diploma;
return $this;
}
public function getBegin(): ?string
{
return $this->begin;
}
public function setBegin(string $begin): self
{
$this->begin = $begin;
return $this;
}
public function getEnd(): ?string
{
return $this->end;
}
public function setEnd(string $end): self
{
$this->end = $end;
return $this;
}
public function getCoach(): ?CoachInfo
{
return $this->coach;
}
public function setCoach(?CoachInfo $coach): self
{
$this->coach = $coach;
return $this;
}
}