modules/QSL/Make/src/Model/Level2Translation.php line 24

Open in your IDE?
  1. <?php
  2. /**
  3.  * Copyright (c) 2011-present Qualiteam software Ltd. All rights reserved.
  4.  * See https://www.x-cart.com/license-agreement.html for license details.
  5.  */
  6. namespace QSL\Make\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Level2 multilingual data
  10.  *
  11.  * @ORM\Entity
  12.  *
  13.  * @ORM\Table (name="level2_translations",
  14.  *         indexes={
  15.  *              @ORM\Index (name="ci", columns={"code","id"}),
  16.  *              @ORM\Index (name="id", columns={"id"})
  17.  *         }
  18.  * )
  19.  */
  20. class Level2Translation extends \XLite\Model\Base\Translation
  21. {
  22.     /**
  23.      * Title of page
  24.      *
  25.      * @var string
  26.      *
  27.      * @ORM\Column (type="string", length=1024)
  28.      */
  29.     protected $title '';
  30.     /**
  31.      * Content
  32.      *
  33.      * @var string
  34.      *
  35.      * @ORM\Column (type="text")
  36.      */
  37.     protected $description '';
  38.     /**
  39.      * @var \QSL\Make\Model\Level2
  40.      *
  41.      * @ORM\ManyToOne (targetEntity="QSL\Make\Model\Level2", inversedBy="translations")
  42.      * @ORM\JoinColumn (name="id", referencedColumnName="id", onDelete="CASCADE")
  43.      */
  44.     protected $owner;
  45.     /**
  46.      * @param $value
  47.      *
  48.      * @return Level2Translation
  49.      */
  50.     public function setTitle($value)
  51.     {
  52.         $this->title $value;
  53.         return $this;
  54.     }
  55.     /**
  56.      * @return string
  57.      */
  58.     public function getTitle()
  59.     {
  60.         return $this->title;
  61.     }
  62.     /**
  63.      * @param $value
  64.      *
  65.      * @return Level2Translation
  66.      */
  67.     public function setDescription($value)
  68.     {
  69.         $this->description $value;
  70.         return $this;
  71.     }
  72.     /**
  73.      * @return string
  74.      */
  75.     public function getDescription()
  76.     {
  77.         return $this->description;
  78.     }
  79.     /**
  80.      * Get label_id
  81.      *
  82.      * @return int
  83.      */
  84.     public function getLabelId()
  85.     {
  86.         return $this->label_id;
  87.     }
  88.     /**
  89.      * Set code
  90.      *
  91.      * @param string $code
  92.      *
  93.      * @return Level2Translation
  94.      */
  95.     public function setCode($code)
  96.     {
  97.         $this->code $code;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get code
  102.      *
  103.      * @return string
  104.      */
  105.     public function getCode()
  106.     {
  107.         return $this->code;
  108.     }
  109. }