src/Entity/BlogArticleTranslation.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\BlogCategorieRepository;
  5. use Doctrine\Common\Collections\ArrayCollection;
  6. use Doctrine\Common\Collections\Collection;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Doctrine\DBAL\Types\Types;
  9. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  10. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  11. #[ORM\Entity()]
  12. class BlogArticleTranslation  implements TranslationInterface
  13. {
  14.     use TranslationTrait;
  15.     #[ORM\Id]
  16.     #[ORM\GeneratedValue]
  17.     #[ORM\Column(type'integer')]
  18.     private $id;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $titre null;
  21.     #[ORM\Column(typeTypes::TEXT)]
  22.     private ?string $contenu null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $slug null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getTitre(): ?string
  30.     {
  31.         return $this->titre;
  32.     }
  33.     public function setTitre(?string $titre): static
  34.     {
  35.         $this->titre $titre;
  36.         return $this;
  37.     }
  38.     public function getContenu(): ?string
  39.     {
  40.         return $this->contenu;
  41.     }
  42.     public function setContenu(string $contenu): static
  43.     {
  44.         $this->contenu $contenu;
  45.         return $this;
  46.     }
  47.     public function getSlug(): ?string
  48.     {
  49.         return $this->slug;
  50.     }
  51.     public function setSlug(?string $slug): static
  52.     {
  53.         $this->slug $slug;
  54.         return $this;
  55.     }
  56. }