src/Entity/BlockTranslation.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BlockTranslationRepository;
  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=BlockTranslationRepository::class)
  9.  */
  10. class BlockTranslation implements TranslationInterface
  11. {
  12.     use TranslationTrait;
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="text", nullable=true)
  21.      */
  22.     private $contenu
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $titre;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getContenu(): ?string
  32.     {
  33.         return $this->contenu;
  34.     }
  35.     public function setContenu(?string $contenu): self
  36.     {
  37.         $this->contenu $contenu;
  38.         return $this;
  39.     } 
  40.     public function getTitre(): ?string
  41.     {
  42.         return $this->titre;
  43.     }
  44.     public function setTitre(?string $titre): self
  45.     {
  46.         $this->titre $titre;
  47.         return $this;
  48.     }
  49. }