src/Entity/SubCategoryTranslation.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\SubCategoryTranslationRepository;
  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=SubCategoryTranslationRepository::class)
  10.  */
  11. class SubCategoryTranslation 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 $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="text", nullable=true)
  39.      */
  40.     private $description;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $introTitle;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $hardwareProductsTitle;
  49.     /**
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $softwareProductsTitle;
  53.     /**
  54.      * @ORM\Column(type="text", nullable=true)
  55.      */
  56.     private $intro;
  57.     /**
  58.      * @ORM\Column(type="string", length=255, nullable=true)
  59.      */
  60.     private $h1;
  61.     public function getId(): ?int
  62.     {
  63.         return $this->id;
  64.     }
  65.     public function getTitle(): ?string
  66.     {
  67.         return $this->title;
  68.     }
  69.     public function setTitle(?string $title): self
  70.     {
  71.         $this->title $title;
  72.         return $this;
  73.     }
  74.     public function getDescription(): ?string
  75.     {
  76.         return $this->description;
  77.     }
  78.     public function setDescription(?string $description): self
  79.     {
  80.         $this->description $description;
  81.         return $this;
  82.     }
  83.     public function getSlug(): ?string
  84.     {
  85.         return $this->slug;
  86.     }
  87.     public function setSlug(?string $slug): self
  88.     {
  89.         $this->slug $slug;
  90.         return $this;
  91.     }
  92.     public function getIntroTitle(): ?string
  93.     {
  94.         return $this->introTitle;
  95.     }
  96.     public function setIntroTitle(?string $introTitle): self
  97.     {
  98.         $this->introTitle $introTitle;
  99.         return $this;
  100.     }
  101.     public function getHardwareProductsTitle(): ?string
  102.     {
  103.         return $this->hardwareProductsTitle;
  104.     }
  105.     public function setHardwareProductsTitle(?string $hardwareProductsTitle): self
  106.     {
  107.         $this->hardwareProductsTitle $hardwareProductsTitle;
  108.         return $this;
  109.     }
  110.     public function getSoftwareProductsTitle(): ?string
  111.     {
  112.         return $this->softwareProductsTitle;
  113.     }
  114.     public function setSoftwareProductsTitle(?string $softwareProductsTitle): self
  115.     {
  116.         $this->softwareProductsTitle $softwareProductsTitle;
  117.         return $this;
  118.     }
  119.     public function getIntro(): ?string
  120.     {
  121.         return $this->intro;
  122.     }
  123.     public function setIntro(?string $intro): self
  124.     {
  125.         $this->intro $intro;
  126.         return $this;
  127.     }
  128.     public function getMetaTitle(): ?string
  129.     {
  130.         return $this->metaTitle;
  131.     }
  132.     public function setMetaTitle(?string $metaTitle): self
  133.     {
  134.         $this->metaTitle $metaTitle;
  135.         return $this;
  136.     }
  137.     public function getMetaDescription(): ?string
  138.     {
  139.         return $this->metaDescription;
  140.     }
  141.     public function setMetaDescription(?string $metaDescription): self
  142.     {
  143.         $this->metaDescription $metaDescription;
  144.         return $this;
  145.     }
  146.     public function getH1(): ?string
  147.     {
  148.         return $this->h1;
  149.     }
  150.     public function setH1(?string $h1): self
  151.     {
  152.         $this->h1 $h1;
  153.         return $this;
  154.     }
  155. }