<?php
namespace App\Entity;
use App\Repository\SectionElearningRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: SectionElearningRepository::class)]
class SectionElearning
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $titre = null;
#[ORM\Column(length: 255, nullable: true)]
private ?string $duree = null;
#[ORM\ManyToOne(inversedBy: 'sectionElearnings')]
private ?FormationElearning $formation = null;
public function getId(): ?int
{
return $this->id;
}
public function getTitre(): ?string
{
return $this->titre;
}
public function setTitre(?string $titre): self
{
$this->titre = $titre;
return $this;
}
public function getDuree(): ?string
{
return $this->duree;
}
public function setDuree(?string $duree): self
{
$this->duree = $duree;
return $this;
}
public function getFormation(): ?FormationElearning
{
return $this->formation;
}
public function setFormation(?FormationElearning $formation): self
{
$this->formation = $formation;
return $this;
}
}