src/Entity/Gestiform/Formations/Catalogue/Module/Chapitre.php line 14

  1. <?php
  2. namespace App\Entity\Gestiform\Formations\Catalogue\Module;
  3. use App\Entity\AbstractEntity;
  4. use App\Repository\Gestiform\Formations\Catalogue\Module\ChapitreRepository;
  5. use App\Entity\Trait\SortableEntity;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassChapitreRepository::class)]
  9. class Chapitre extends AbstractEntity
  10. {
  11.     use SortableEntity;
  12.     #[ORM\Column(type'string'length255nullablefalse)]
  13.     private string $intitule;
  14.     #[ORM\Column(type'string'length255)]
  15.     private ?string $commentaire null;
  16.     #[ORM\Column(type'string'length255)]
  17.     private ?string $descriptionTravauxPratiques null;
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     #[ORM\ManyToOne(targetEntityModule::class, cascade: ['persist'], inversedBy'chapitres')]
  20.     private Module $module;
  21.     public function getIntitule(): ?string
  22.     {
  23.         return $this->intitule;
  24.     }
  25.     public function setIntitule(string $intitule): self
  26.     {
  27.         $this->intitule $intitule;
  28.         return $this;
  29.     }
  30.     public function getCommentaire(): ?string
  31.     {
  32.         return $this->commentaire;
  33.     }
  34.     public function setCommentaire(string $commentaire): self
  35.     {
  36.         $this->commentaire $commentaire;
  37.         return $this;
  38.     }
  39.     public function getDescriptionTravauxPratiques(): ?string
  40.     {
  41.         return $this->descriptionTravauxPratiques;
  42.     }
  43.     public function setDescriptionTravauxPratiques(?string $descriptionTravauxPratiques): self
  44.     {
  45.         $this->descriptionTravauxPratiques $descriptionTravauxPratiques;
  46.         return $this;
  47.     }
  48.     public function getModule(): ?Module
  49.     {
  50.         return $this->module;
  51.     }
  52.     public function setModule(?Module $module): self
  53.     {
  54.         $this->module $module;
  55.         return $this;
  56.     }
  57.   
  58. }