<?php
namespace App\Entity;
use Knp\DoctrineBehaviors\Contract\Entity\SoftDeletableInterface;
use Knp\DoctrineBehaviors\Model\SoftDeletable\SoftDeletableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TimestampableInterface;
use Knp\DoctrineBehaviors\Model\Timestampable\TimestampableTrait;
use Knp\DoctrineBehaviors\Contract\Entity\BlameableInterface;
use Knp\DoctrineBehaviors\Model\Blameable\BlameableTrait;
use Knp\DoctrineBehaviors\Model\Translatable\TranslationTrait;
use Knp\DoctrineBehaviors\Contract\Entity\TranslationInterface;
use Doctrine\ORM\Mapping as ORM;
/**
* @Doctrine\ORM\Mapping\Entity
* @Doctrine\ORM\Mapping\Table(name="category_translation")
*/
class CategoryTranslation implements TranslationInterface, BlameableInterface, TimestampableInterface, SoftDeletableInterface {
use TranslationTrait;
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue
*/
private ?int $id = null;
use BlameableTrait;
use TimestampableTrait;
use SoftDeletableTrait;
/**
* @Doctrine\ORM\Mapping\Column(type="string", length=255)
*/
protected $name;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $description;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $metaTitle;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $metaDescription;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $metaKeywords;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $customH1;
/**
* @return mixed
*/
public function getCanonical()
{
return $this->canonical;
}
/**
* @param mixed $canonical
*/
public function setCanonical($canonical)
{
$this->canonical = $canonical;
}
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $canonical;
/**
* @Doctrine\ORM\Mapping\Column(type="text", nullable=true)
*/
protected $slug;
/**
* @var string
*
* @ORM\Column(name="google_product_type", type="string", length=255, nullable=true)
*/
private $googleProductType;
/**
* @var string
*
* @ORM\Column(name="google_product_category", type="string", length=255, nullable=true)
*/
private $googleProductCategory;
/**
* @var string
*
* @ORM\Column(name="special_product_category", type="string", length=255, nullable=true)
*/
private $specialProductCategory;
/**
* Set name
*
* @param string $name
*
* @return CategoryTranslation
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set description
*
* @param string $description
*
* @return CategoryTranslation
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set metaTitle
*
* @param string $metaTitle
*
* @return CategoryTranslation
*/
public function setMetaTitle($metaTitle)
{
$this->metaTitle = $metaTitle;
return $this;
}
/**
* Get metaTitle
*
* @return string
*/
public function getMetaTitle()
{
return $this->metaTitle;
}
/**
* Set metaDescription
*
* @param string $metaDescription
*
* @return CategoryTranslation
*/
public function setMetaDescription($metaDescription)
{
$this->metaDescription = $metaDescription;
return $this;
}
/**
* Get metaDescription
*
* @return string
*/
public function getMetaDescription()
{
return $this->metaDescription;
}
/**
* Set metaKeywords
*
* @param string $metaKeywords
*
* @return CategoryTranslation
*/
public function setMetaKeywords($metaKeywords)
{
$this->metaKeywords = $metaKeywords;
return $this;
}
/**
* Get metaKeywords
*
* @return string
*/
public function getMetaKeywords()
{
return $this->metaKeywords;
}
/**
* Set slug
*
* @param string $slug
*
* @return CategoryTranslation
*/
public function setSlug($slug)
{
$this->slug = $slug;
return $this;
}
/**
* Get slug
*
* @return string
*/
public function getSlug()
{
return $this->slug;
}
public function getGoogleProductType(): ?string
{
return $this->googleProductType;
}
public function setGoogleProductType(?string $googleProductType): self
{
$this->googleProductType = $googleProductType;
return $this;
}
public function getGoogleProductCategory(): ?string
{
return $this->googleProductCategory;
}
public function setGoogleProductCategory(?string $googleProductCategory): self
{
$this->googleProductCategory = $googleProductCategory;
return $this;
}
public function getId(): ?int
{
return $this->id;
}
/**
* @return mixed
*/
public function getCustomH1()
{
return $this->customH1;
}
/**
* @param mixed $customH1
*/
public function setCustomH1($customH1)
{
$this->customH1 = $customH1;
}
/**
* @return string
*/
public function getSpecialProductCategory()
{
return $this->specialProductCategory;
}
/**
* @param string $specialProductCategory
*/
public function setSpecialProductCategory(?string $specialProductCategory): self
{
$this->specialProductCategory = $specialProductCategory;
}
}