modules/XC/CustomProductTabs/src/Model/Product/TabTranslation.php line 19

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 XC\CustomProductTabs\Model\Product;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * tab multilingual data
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table (name="product_tab_translations")
  13.  */
  14. class TabTranslation extends \XLite\Model\Base\Translation
  15. {
  16.     /**
  17.      * Tab name
  18.      *
  19.      * @var string
  20.      *
  21.      * @ORM\Column (type="string", length=255)
  22.      */
  23.     protected $name '';
  24.     /**
  25.      * Tab brief info
  26.      *
  27.      * @var string
  28.      *
  29.      * @ORM\Column (type="text")
  30.      */
  31.     protected $brief_info '';
  32.     /**
  33.      * Tab Content
  34.      *
  35.      * @var string
  36.      *
  37.      * @ORM\Column (type="text")
  38.      */
  39.     protected $content '';
  40.     /**
  41.      * @var \XC\CustomProductTabs\Model\Product\Tab
  42.      *
  43.      * @ORM\ManyToOne (targetEntity="XC\CustomProductTabs\Model\Product\Tab", inversedBy="translations")
  44.      * @ORM\JoinColumn (name="id", referencedColumnName="id", onDelete="CASCADE")
  45.      */
  46.     protected $owner;
  47.     /**
  48.      * Set name
  49.      *
  50.      * @param string $name
  51.      * @return $this
  52.      */
  53.     public function setName($name)
  54.     {
  55.         $this->name $name;
  56.         return $this;
  57.     }
  58.     /**
  59.      * Get name
  60.      *
  61.      * @return string
  62.      */
  63.     public function getName()
  64.     {
  65.         return $this->name;
  66.     }
  67.     /**
  68.      * Return BriefInfo
  69.      *
  70.      * @return string
  71.      */
  72.     public function getBriefInfo()
  73.     {
  74.         return $this->brief_info;
  75.     }
  76.     /**
  77.      * Set BriefInfo
  78.      *
  79.      * @param string $brief_info
  80.      *
  81.      * @return $this
  82.      */
  83.     public function setBriefInfo($brief_info)
  84.     {
  85.         $this->brief_info $brief_info;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Set content
  90.      *
  91.      * @param string $content
  92.      * @return $this
  93.      */
  94.     public function setContent($content)
  95.     {
  96.         $this->content $content;
  97.         return $this;
  98.     }
  99.     /**
  100.      * Get content
  101.      *
  102.      * @return string
  103.      */
  104.     public function getContent()
  105.     {
  106.         return $this->content;
  107.     }
  108.     /**
  109.      * Get label_id
  110.      *
  111.      * @return integer
  112.      */
  113.     public function getLabelId()
  114.     {
  115.         return $this->label_id;
  116.     }
  117.     /**
  118.      * Set code
  119.      *
  120.      * @param string $code
  121.      * @return $this
  122.      */
  123.     public function setCode($code)
  124.     {
  125.         $this->code $code;
  126.         return $this;
  127.     }
  128.     /**
  129.      * Get code
  130.      *
  131.      * @return string
  132.      */
  133.     public function getCode()
  134.     {
  135.         return $this->code;
  136.     }
  137. }