modules/QSL/PopupAnywhere/src/Model/PopupTranslation.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 QSL\PopupAnywhere\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Popup multilingual data.
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="anywhere_popup_translations",
  13.  *      indexes={
  14.  *          @ORM\Index (name="ci", columns={"code","id"}),
  15.  *          @ORM\Index (name="id", columns={"id"})
  16.  *      }
  17.  * )
  18.  */
  19. class PopupTranslation extends \XLite\Model\Base\Translation
  20. {
  21.     /**
  22.      * Administrative name (visible to the store administrator only).
  23.      *
  24.      * @var string
  25.      *
  26.      * @ORM\Column (type="string", length=255)
  27.      */
  28.     protected $name;
  29.     /**
  30.      * Custom HTML - header.
  31.      *
  32.      * @var string
  33.      *
  34.      * @ORM\Column (type="string", length=255, options={ "default": "" })
  35.      */
  36.     protected $customHeader '';
  37.     /**
  38.      * Body.
  39.      *
  40.      * @var string
  41.      *
  42.      * @ORM\Column (type="text")
  43.      */
  44.     protected $body '';
  45.     /**
  46.      * @var \QSL\PopupAnywhere\Model\Popup
  47.      *
  48.      * @ORM\ManyToOne (targetEntity="QSL\PopupAnywhere\Model\Popup", inversedBy="translations")
  49.      * @ORM\JoinColumn (name="id", referencedColumnName="popup_id", onDelete="CASCADE")
  50.      */
  51.     protected $owner;
  52.     /**
  53.      * Set name
  54.      *
  55.      * @param string $name
  56.      *
  57.      * @return PopupTranslation
  58.      */
  59.     public function setName($name)
  60.     {
  61.         $this->name $name;
  62.         return $this;
  63.     }
  64.     /**
  65.      * Get name
  66.      *
  67.      * @return string
  68.      */
  69.     public function getName()
  70.     {
  71.         return $this->name;
  72.     }
  73.     /**
  74.      * Set customHeader
  75.      *
  76.      * @param string $customHeader
  77.      *
  78.      * @return PopupTranslation
  79.      */
  80.     public function setCustomHeader($customHeader)
  81.     {
  82.         $this->customHeader $customHeader;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get customHeader
  87.      *
  88.      * @return string
  89.      */
  90.     public function getCustomHeader()
  91.     {
  92.         return $this->customHeader;
  93.     }
  94.     /**
  95.      * Set body
  96.      *
  97.      * @param string $body
  98.      *
  99.      * @return PopupTranslation
  100.      */
  101.     public function setBody($body)
  102.     {
  103.         $this->body $body;
  104.         return $this;
  105.     }
  106.     /**
  107.      * Get body
  108.      *
  109.      * @return string
  110.      */
  111.     public function getBody()
  112.     {
  113.         return $this->body;
  114.     }
  115.     /**
  116.      * Get label_id
  117.      *
  118.      * @return integer
  119.      */
  120.     public function getLabelId()
  121.     {
  122.         return $this->label_id;
  123.     }
  124.     /**
  125.      * Set code
  126.      *
  127.      * @param string $code
  128.      *
  129.      * @return PopupTranslation
  130.      */
  131.     public function setCode($code)
  132.     {
  133.         $this->code $code;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get code
  138.      *
  139.      * @return string
  140.      */
  141.     public function getCode()
  142.     {
  143.         return $this->code;
  144.     }
  145. }