src/Entity/BlogCategorieTranslation.php line 16

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 Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  9. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  10. #[ORM\Entity()]
  11. class BlogCategorieTranslation  implements TranslationInterface
  12. {
  13.     use TranslationTrait;
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column(type'integer')]
  17.     private $id;
  18.     #[ORM\Column(length255nullabletrue)]
  19.     private ?string $nom null;
  20.     #[ORM\Column(length255nullabletrue)]
  21.     private ?string $slug null;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getNom(): ?string
  27.     {
  28.         return $this->nom;
  29.     }
  30.     public function setNom(?string $nom): static
  31.     {
  32.         $this->nom $nom;
  33.         return $this;
  34.     }
  35.     public function getSlug(): ?string
  36.     {
  37.         return $this->slug;
  38.     }
  39.     public function setSlug(?string $slug): static
  40.     {
  41.         $this->slug $slug;
  42.         return $this;
  43.     }
  44. }