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

Open in your IDE?
  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\Trait\SortableEntity;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * @ORM\Entity(repositoryClass=ChapitreRepository::class)
  10.  */
  11. class Chapitre extends AbstractEntity
  12. {
  13.     use SortableEntity;
  14.     /**
  15.      * @ORM\Column(type="string", length=255, nullable=false)
  16.      */
  17.     private string $intitule;
  18.     /**
  19.      * @ORM\Column(type="string", length=255)
  20.      */
  21.     private ?string $commentaire null;
  22.     /**
  23.      * @ORM\Column(type="string", length=255)
  24.      */
  25.     private ?string $descriptionTravauxPratiques null;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Module::class, inversedBy="chapitres", cascade={"persist"})
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private Module $module;
  31.     public function getIntitule(): ?string
  32.     {
  33.         return $this->intitule;
  34.     }
  35.     public function setIntitule(string $intitule): self
  36.     {
  37.         $this->intitule $intitule;
  38.         return $this;
  39.     }
  40.     public function getCommentaire(): ?string
  41.     {
  42.         return $this->commentaire;
  43.     }
  44.     public function setCommentaire(string $commentaire): self
  45.     {
  46.         $this->commentaire $commentaire;
  47.         return $this;
  48.     }
  49.     public function getDescriptionTravauxPratiques(): ?string
  50.     {
  51.         return $this->descriptionTravauxPratiques;
  52.     }
  53.     public function setDescriptionTravauxPratiques(?string $descriptionTravauxPratiques): self
  54.     {
  55.         $this->descriptionTravauxPratiques $descriptionTravauxPratiques;
  56.         return $this;
  57.     }
  58.     public function getModule(): ?Module
  59.     {
  60.         return $this->module;
  61.     }
  62.     public function setModule(?Module $module): self
  63.     {
  64.         $this->module $module;
  65.         return $this;
  66.     }
  67.   
  68. }