src/Entity/Gestiform/Formations/Catalogue/Module/Chapitre.php line 14
<?php
namespace App\Entity\Gestiform\Formations\Catalogue\Module;
use App\Entity\AbstractEntity;
use App\Repository\Gestiform\Formations\Catalogue\Module\ChapitreRepository;
use App\Entity\Trait\SortableEntity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: ChapitreRepository::class)]
class Chapitre extends AbstractEntity
{
use SortableEntity;
#[ORM\Column(type: 'string', length: 255, nullable: false)]
private string $intitule;
#[ORM\Column(type: 'string', length: 255)]
private ?string $commentaire = null;
#[ORM\Column(type: 'string', length: 255)]
private ?string $descriptionTravauxPratiques = null;
#[ORM\JoinColumn(nullable: false)]
#[ORM\ManyToOne(targetEntity: Module::class, cascade: ['persist'], inversedBy: 'chapitres')]
private Module $module;
public function getIntitule(): ?string
{
return $this->intitule;
}
public function setIntitule(string $intitule): self
{
$this->intitule = $intitule;
return $this;
}
public function getCommentaire(): ?string
{
return $this->commentaire;
}
public function setCommentaire(string $commentaire): self
{
$this->commentaire = $commentaire;
return $this;
}
public function getDescriptionTravauxPratiques(): ?string
{
return $this->descriptionTravauxPratiques;
}
public function setDescriptionTravauxPratiques(?string $descriptionTravauxPratiques): self
{
$this->descriptionTravauxPratiques = $descriptionTravauxPratiques;
return $this;
}
public function getModule(): ?Module
{
return $this->module;
}
public function setModule(?Module $module): self
{
$this->module = $module;
return $this;
}
}