src/Entity/Um6p/FormationTranslation.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Um6p;
  3. use App\Repository\Um6p\FormationTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  6. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  7. /**
  8.  * @ORM\Entity(repositoryClass=FormationTranslationRepository::class)
  9.  */
  10. class FormationTranslation implements TranslationInterface
  11.     use TranslationTrait;
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=100, nullable=true)
  20.      */
  21.     private $titre;
  22.     /**
  23.      * @ORM\Column(type="string", length=100, nullable=true)
  24.      */
  25.     private $duree;
  26.  
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getTitre(): ?string
  32.     {
  33.         return $this->titre;
  34.     }
  35.     public function setTitre(?string $titre): self
  36.     {
  37.         $this->titre $titre;
  38.         return $this;
  39.     }
  40.     public function getDuree(): ?string
  41.     {
  42.         return $this->duree;
  43.     }
  44.     public function setDuree(?string $duree): self
  45.     {
  46.         $this->duree $duree;
  47.         return $this;
  48.     }
  49.  
  50.     
  51. }