src/Entity/SubSubSubCategoryTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SubSubSubCategoryTranslationRepository;
  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=SubSubSubCategoryTranslationRepository::class)
  10.  */
  11. class SubSubSubCategoryTranslation 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="text", nullable=true)
  30.      */
  31.     private $description;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $title;
  36.     /**
  37.      * @Gedmo\Slug(fields={"title"})
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $slug;
  41.     public function getId(): ?int
  42.     {
  43.         return $this->id;
  44.     }
  45.     public function getTitle(): ?string
  46.     {
  47.         return $this->title;
  48.     }
  49.     public function setTitle(?string $title): self
  50.     {
  51.         $this->title $title;
  52.         return $this;
  53.     }
  54.     public function getSlug(): ?string
  55.     {
  56.         return $this->slug;
  57.     }
  58.     public function setSlug(?string $slug): self
  59.     {
  60.         $this->slug $slug;
  61.         return $this;
  62.     }
  63.     public function getDescription(): ?string
  64.     {
  65.         return $this->description;
  66.     }
  67.     public function setDescription(?string $description): self
  68.     {
  69.         $this->description $description;
  70.         return $this;
  71.     }
  72.     public function getMetaTitle(): ?string
  73.     {
  74.         return $this->metaTitle;
  75.     }
  76.     public function setMetaTitle(?string $metaTitle): self
  77.     {
  78.         $this->metaTitle $metaTitle;
  79.         return $this;
  80.     }
  81.     public function getMetaDescription(): ?string
  82.     {
  83.         return $this->metaDescription;
  84.     }
  85.     public function setMetaDescription(?string $metaDescription): self
  86.     {
  87.         $this->metaDescription $metaDescription;
  88.         return $this;
  89.     }
  90. }