<?php
/**
* Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
* See https://www.x-cart.com/license-agreement.html for license details.
*/
namespace QSL\Make\Model;
use Doctrine\ORM\Mapping as ORM;
/**
* Level1 multilingual data
*
* @ORM\Entity
*
* @ORM\Table (name="level1_translations",
* indexes={
* @ORM\Index (name="ci", columns={"code","id"}),
* @ORM\Index (name="id", columns={"id"})
* }
* )
*/
class Level1Translation extends \XLite\Model\Base\Translation
{
/**
* Title of page
*
* @var string
*
* @ORM\Column (type="string", length=1024)
*/
protected $title = '';
/**
* Content
*
* @var string
*
* @ORM\Column (type="text")
*/
protected $description = '';
/**
* @var \QSL\Make\Model\Level1
*
* @ORM\ManyToOne (targetEntity="QSL\Make\Model\Level1", inversedBy="translations")
* @ORM\JoinColumn (name="id", referencedColumnName="id", onDelete="CASCADE")
*/
protected $owner;
/**
* @param $value
*
* @return Level1Translation
*/
public function setTitle($value)
{
$this->title = $value;
return $this;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param $value
*
* @return Level1Translation
*/
public function setDescription($value)
{
$this->description = $value;
return $this;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Get label_id
*
* @return int
*/
public function getLabelId()
{
return $this->label_id;
}
/**
* Set code
*
* @param string $code
*
* @return Level1Translation
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* Get code
*
* @return string
*/
public function getCode()
{
return $this->code;
}
}