src/Entity/ProductTranslation.php line 16

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