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="text", nullable=true)
  26.      */
  27.     private $metaDescription;
  28.     /**
  29.      * @ORM\Column(type="string", length=255, nullable=true)
  30.      */
  31.     private $title;
  32.     /**
  33.      * @Gedmo\Slug(fields={"title"})
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $slug;
  37.     /**
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $paragraphTitle;
  41.     /**
  42.      * @ORM\Column(type="text", nullable=true)
  43.      */
  44.     private $description;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getTitle(): ?string
  50.     {
  51.         return $this->title;
  52.     }
  53.     public function setTitle(?string $title): self
  54.     {
  55.         $this->title $title;
  56.         return $this;
  57.     }
  58.     public function getParagraphTitle(): ?string
  59.     {
  60.         return $this->paragraphTitle;
  61.     }
  62.     public function setParagraphTitle(?string $paragraphTitle): self
  63.     {
  64.         $this->paragraphTitle $paragraphTitle;
  65.         return $this;
  66.     }
  67.     public function getDescription(): ?string
  68.     {
  69.         return $this->description;
  70.     }
  71.     public function setDescription(?string $description): self
  72.     {
  73.         $this->description $description;
  74.         return $this;
  75.     }
  76.     public function getSlug(): ?string
  77.     {
  78.         return $this->slug;
  79.     }
  80.     public function setSlug(?string $slug): self
  81.     {
  82.         $this->slug $slug;
  83.         return $this;
  84.     }
  85.     public function getMetaTitle(): ?string
  86.     {
  87.         return $this->metaTitle;
  88.     }
  89.     public function setMetaTitle(?string $metaTitle): self
  90.     {
  91.         $this->metaTitle $metaTitle;
  92.         return $this;
  93.     }
  94.     public function getMetaDescription(): ?string
  95.     {
  96.         return $this->metaDescription;
  97.     }
  98.     public function setMetaDescription(?string $metaDescription): self
  99.     {
  100.         $this->metaDescription $metaDescription;
  101.         return $this;
  102.     }
  103. }