<?php
/**
* Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
* See https://www.x-cart.com/license-agreement.html for license details.
*/
namespace XLite\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* Category multilingual data
*
* @ORM\Entity
* @ORM\Table (name="category_translations",
* indexes={
* @ORM\Index (name="ci", columns={"code","id"}),
* @ORM\Index (name="id", columns={"id"})
* }
* )
*/
class CategoryTranslation extends \XLite\Model\Base\Translation
{
/**
* Category name
*
* @var string
*
* @ORM\Column (type="string", length=255)
*/
protected $name;
/**
* Category description
*
* @var string
*
* @ORM\Column (type="text")
*/
protected $description = '';
/**
* Category meta keywords
*
* @var string
*
* @ORM\Column (type="string", length=255)
*/
protected $metaTags = '';
/**
* Category meta description
*
* @var string
*
* @ORM\Column (type="text")
*/
protected $metaDesc = '';
/**
* Value of the title HTML-tag for category page
*
* @var string
*
* @ORM\Column (type="string", length=255)
*/
protected $metaTitle = '';
/**
* @var \XLite\Model\Category
*
* @ORM\ManyToOne (targetEntity="XLite\Model\Category", inversedBy="translations")
* @ORM\JoinColumn (name="id", referencedColumnName="category_id", onDelete="CASCADE")
*/
protected $owner;
/**
* 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 metaTags
*
* @param string $metaTags
* @return CategoryTranslation
*/
public function setMetaTags($metaTags)
{
$this->metaTags = $metaTags;
return $this;
}
/**
* Get metaTags
*
* @return string
*/
public function getMetaTags()
{
return $this->metaTags;
}
/**
* Set metaDesc
*
* @param string $metaDesc
* @return CategoryTranslation
*/
public function setMetaDesc($metaDesc)
{
$this->metaDesc = $metaDesc;
return $this;
}
/**
* Get metaDesc
*
* @return string
*/
public function getMetaDesc()
{
return $this->metaDesc;
}
/**
* 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;
}
/**
* Get label_id
*
* @return integer
*/
public function getLabelId()
{
return $this->label_id;
}
/**
* Set code
*
* @param string $code
* @return CategoryTranslation
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code
*
* @return string
*/
public function getCode()
{
return $this->code;
}
}