<?php
namespace App\Entity;
use App\Repository\ProductTranslationRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslatableTrait;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
/**
* @ORM\Entity(repositoryClass=ProductTranslationRepository::class)
*/
class ProductTranslation implements TranslationInterface
{
use TranslationTrait;
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $metaTitle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $metaDescription;
/**
* @Gedmo\Slug(fields={"title"})
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $slug;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $introTitle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $hardwareAddonTitle;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $softwareAddonTitle;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $intro;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $h1;
public function getId(): ?int
{
return $this->id;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getIntroTitle(): ?string
{
return $this->introTitle;
}
public function setIntroTitle(?string $introTitle): self
{
$this->introTitle = $introTitle;
return $this;
}
public function getHardwareAddonTitle(): ?string
{
return $this->hardwareAddonTitle;
}
public function setHardwareAddonTitle(?string $hardwareAddonTitle): self
{
$this->hardwareAddonTitle = $hardwareAddonTitle;
return $this;
}
public function getSoftwareAddonTitle(): ?string
{
return $this->softwareAddonTitle;
}
public function setSoftwareAddonTitle(?string $softwareAddonTitle): self
{
$this->softwareAddonTitle = $softwareAddonTitle;
return $this;
}
public function getIntro(): ?string
{
return $this->intro;
}
public function setIntro(?string $intro): self
{
$this->intro = $intro;
return $this;
}
public function getMetaTitle(): ?string
{
return $this->metaTitle;
}
public function setMetaTitle(?string $metaTitle): self
{
$this->metaTitle = $metaTitle;
return $this;
}
public function getMetaDescription(): ?string
{
return $this->metaDescription;
}
public function setMetaDescription(?string $metaDescription): self
{
$this->metaDescription = $metaDescription;
return $this;
}
public function getH1(): ?string
{
return $this->h1;
}
public function setH1(?string $h1): self
{
$this->h1 = $h1;
return $this;
}
}