src/Entity/CategoryTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CategoryTranslationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
  7. use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
  8. /**
  9.  * @ORM\Entity(repositoryClass=CategoryTranslationRepository::class)
  10.  */
  11. class CategoryTranslation implements TranslationInterface
  12. {
  13.     use TranslationTrait;
  14.     /**
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $metaTitle;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $metaDescription;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $metaTitlePublication;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $metaDescriptionPublication;
  36.     /**
  37.      * @ORM\Column(type="string", length=255, nullable=true)
  38.      */
  39.     private $title;
  40.     /**
  41.      * @Gedmo\Slug(fields={"title"})
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $slug;
  45.     /**
  46.      * @ORM\Column(type="text", nullable=true)
  47.      */
  48.     private $description;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $h1;
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getTitle(): ?string
  58.     {
  59.         return $this->title;
  60.     }
  61.     public function setTitle(?string $title): self
  62.     {
  63.         $this->title $title;
  64.         return $this;
  65.     }
  66.     public function getDescription(): ?string
  67.     {
  68.         return $this->description;
  69.     }
  70.     public function setDescription(?string $description): self
  71.     {
  72.         $this->description $description;
  73.         return $this;
  74.     }
  75.     public function getSlug(): ?string
  76.     {
  77.         return $this->slug;
  78.     }
  79.     public function setSlug(?string $slug): self
  80.     {
  81.         $this->slug $slug;
  82.         return $this;
  83.     }
  84.     public function getMetaTitle(): ?string
  85.     {
  86.         return $this->metaTitle;
  87.     }
  88.     public function setMetaTitle(?string $metaTitle): self
  89.     {
  90.         $this->metaTitle $metaTitle;
  91.         return $this;
  92.     }
  93.     public function getMetaDescription(): ?string
  94.     {
  95.         return $this->metaDescription;
  96.     }
  97.     public function setMetaDescription(?string $metaDescription): self
  98.     {
  99.         $this->metaDescription $metaDescription;
  100.         return $this;
  101.     }
  102.     public function getMetaTitlePublication(): ?string
  103.     {
  104.         return $this->metaTitlePublication;
  105.     }
  106.     public function setMetaTitlePublication(?string $metaTitlePublication): self
  107.     {
  108.         $this->metaTitlePublication $metaTitlePublication;
  109.         return $this;
  110.     }
  111.     public function getMetaDescriptionPublication(): ?string
  112.     {
  113.         return $this->metaDescriptionPublication;
  114.     }
  115.     public function setMetaDescriptionPublication(?string $metaDescriptionPublication): self
  116.     {
  117.         $this->metaDescriptionPublication $metaDescriptionPublication;
  118.         return $this;
  119.     }
  120.     public function getH1(): ?string
  121.     {
  122.         return $this->h1;
  123.     }
  124.     public function setH1(?string $h1): self
  125.     {
  126.         $this->h1 $h1;
  127.         return $this;
  128.     }
  129. }