classes/XLite/Model/ConfigTranslation.php line 23

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 XLite\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Config multilingual data
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="config_translations",
  13.  *      indexes={
  14.  *          @ORM\Index (name="ci", columns={"code","id"}),
  15.  *          @ORM\Index (name="id", columns={"id"})
  16.  *      }
  17.  * )
  18.  */
  19. class ConfigTranslation extends \XLite\Model\Base\Translation
  20. {
  21.     /**
  22.      * Human-readable option name
  23.      *
  24.      * @var string
  25.      *
  26.      * @ORM\Column (type="string", length=255)
  27.      */
  28.     protected $option_name;
  29.     /**
  30.      * Option comment
  31.      *
  32.      * @var string
  33.      *
  34.      * @ORM\Column (type="text")
  35.      */
  36.     protected $option_comment '';
  37.     /**
  38.      * @var \XLite\Model\Config
  39.      *
  40.      * @ORM\ManyToOne (targetEntity="XLite\Model\Config", inversedBy="translations")
  41.      * @ORM\JoinColumn (name="id", referencedColumnName="config_id", onDelete="CASCADE")
  42.      */
  43.     protected $owner;
  44.     /**
  45.      * Set option_name
  46.      *
  47.      * @param string $optionName
  48.      * @return ConfigTranslation
  49.      */
  50.     public function setOptionName($optionName)
  51.     {
  52.         $this->option_name $optionName;
  53.         return $this;
  54.     }
  55.     /**
  56.      * Get option_name
  57.      *
  58.      * @return string
  59.      */
  60.     public function getOptionName()
  61.     {
  62.         return $this->option_name;
  63.     }
  64.     /**
  65.      * Set option_comment
  66.      *
  67.      * @param string $optionComment
  68.      * @return ConfigTranslation
  69.      */
  70.     public function setOptionComment($optionComment)
  71.     {
  72.         $this->option_comment $optionComment;
  73.         return $this;
  74.     }
  75.     /**
  76.      * Get option_comment
  77.      *
  78.      * @return string
  79.      */
  80.     public function getOptionComment()
  81.     {
  82.         return $this->option_comment;
  83.     }
  84.     /**
  85.      * Get label_id
  86.      *
  87.      * @return integer
  88.      */
  89.     public function getLabelId()
  90.     {
  91.         return $this->label_id;
  92.     }
  93.     /**
  94.      * Set code
  95.      *
  96.      * @param string $code
  97.      * @return ConfigTranslation
  98.      */
  99.     public function setCode($code)
  100.     {
  101.         $this->code $code;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get code
  106.      *
  107.      * @return string
  108.      */
  109.     public function getCode()
  110.     {
  111.         return $this->code;
  112.     }
  113. }