<?phpnamespace App\Entity;use App\Repository\SessionPlanFormationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=SessionPlanFormationRepository::class) */class SessionPlanFormation{ /** * @ORM\Id() * @ORM\GeneratedValue() * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $week; /** * @ORM\Column(type="date") */ private $day; /** * @ORM\Column(type="string", length=255) */ private $module; /** * @ORM\Column(type="string", length=255) */ private $hours; /** * @ORM\OneToOne(targetEntity="App\Entity\Session") * @ORM\JoinColumn(nullable=false) */ private $session; /** * @ORM\ManyToOne(targetEntity=Formateur::class) * @ORM\JoinColumn(nullable=false) */ private $formateur; public function getId(): ?int { return $this->id; } public function getDay(): ?\DateTimeInterface { return $this->day; } public function setDay(\DateTimeInterface $day): self { $this->day = $day; return $this; } public function getWeek(): ?string { return $this->week; } public function setWeek(string $week): self { $this->week = $week; return $this; } public function getModule(): ?string { return $this->module; } public function setModule(string $module): self { $this->module = $module; return $this; } public function getHours(): ?string { return $this->hours; } public function setHours(string $hours): self { $this->hours = $hours; return $this; } public function getSession(): ?Session { return $this->session; } public function setSession(?Session $session): self { $this->session = $session; return $this; } public function getFormateur(): ?Formateur { return $this->formateur; } public function setFormateur(?Formateur $formateur): self { $this->formateur = $formateur; return $this; } }