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 $photoTitle;
  47.     /**
  48.      * @ORM\Column(type="string", length=255, nullable=true)
  49.      */
  50.     private $schemaTitle;
  51.     /**
  52.      * @ORM\Column(type="text", nullable=true)
  53.      */
  54.     private $intro;
  55.     public function getId(): ?int
  56.     {
  57.         return $this->id;
  58.     }
  59.     public function getSlug(): ?string
  60.     {
  61.         return $this->slug;
  62.     }
  63.     public function setSlug(?string $slug): self
  64.     {
  65.         $this->slug $slug;
  66.         return $this;
  67.     }
  68.     public function getTitle(): ?string
  69.     {
  70.         return $this->title;
  71.     }
  72.     public function setTitle(?string $title): self
  73.     {
  74.         $this->title $title;
  75.         return $this;
  76.     }
  77.     public function getDescription(): ?string
  78.     {
  79.         return $this->description;
  80.     }
  81.     public function setDescription(?string $description): self
  82.     {
  83.         $this->description $description;
  84.         return $this;
  85.     }
  86.     public function getMetaTitle(): ?string
  87.     {
  88.         return $this->metaTitle;
  89.     }
  90.     public function setMetaTitle(?string $metaTitle): self
  91.     {
  92.         $this->metaTitle $metaTitle;
  93.         return $this;
  94.     }
  95.     public function getMetaDescription(): ?string
  96.     {
  97.         return $this->metaDescription;
  98.     }
  99.     public function setMetaDescription(?string $metaDescription): self
  100.     {
  101.         $this->metaDescription $metaDescription;
  102.         return $this;
  103.     }
  104.     public function getPhotoTitle(): ?string
  105.     {
  106.         return $this->photoTitle;
  107.     }
  108.     public function setPhotoTitle(?string $photoTitle): self
  109.     {
  110.         $this->photoTitle $photoTitle;
  111.         return $this;
  112.     }
  113.     public function getSchemaTitle(): ?string
  114.     {
  115.         return $this->schemaTitle;
  116.     }
  117.     public function setSchemaTitle(?string $schemaTitle): self
  118.     {
  119.         $this->schemaTitle $schemaTitle;
  120.         return $this;
  121.     }
  122.     public function getIntro(): ?string
  123.     {
  124.         return $this->intro;
  125.     }
  126.     public function setIntro(?string $intro): self
  127.     {
  128.         $this->intro $intro;
  129.         return $this;
  130.     }
  131. }