<?php
namespace App\Entity;
use App\Repository\CategoryTranslationRepository;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
/**
* @ORM\Entity(repositoryClass=CategoryTranslationRepository::class)
*/
class CategoryTranslation 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;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $metaTitlePublication;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $metaDescriptionPublication;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @Gedmo\Slug(fields={"title"})
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $slug;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $h1;
public function getId(): ?int
{
return $this->id;
}
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 getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
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 getMetaTitlePublication(): ?string
{
return $this->metaTitlePublication;
}
public function setMetaTitlePublication(?string $metaTitlePublication): self
{
$this->metaTitlePublication = $metaTitlePublication;
return $this;
}
public function getMetaDescriptionPublication(): ?string
{
return $this->metaDescriptionPublication;
}
public function setMetaDescriptionPublication(?string $metaDescriptionPublication): self
{
$this->metaDescriptionPublication = $metaDescriptionPublication;
return $this;
}
public function getH1(): ?string
{
return $this->h1;
}
public function setH1(?string $h1): self
{
$this->h1 = $h1;
return $this;
}
}