modules/QSL/ShopByBrand/src/Model/BrandTranslation.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\ShopByBrand\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Reminder multilingual data.
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="brand_translations",
  13.  *      indexes={
  14.  *          @ORM\Index (name="ci", columns={"code","id"}),
  15.  *          @ORM\Index (name="id", columns={"id"})
  16.  *      }
  17.  * )
  18.  */
  19. class BrandTranslation extends \XLite\Model\Base\Translation
  20. {
  21.     /**
  22.      * Formatted brand description.
  23.      *
  24.      * @var string
  25.      *
  26.      * @ORM\Column (type="text")
  27.      */
  28.     protected $description '';
  29.     /**
  30.      * Value of the title HTML-tag for category page
  31.      *
  32.      * @var string
  33.      *
  34.      * @ORM\Column (type="string", length=255)
  35.      */
  36.     protected $metaTitle '';
  37.     /**
  38.      * Formatted brand description.
  39.      *
  40.      * @var string
  41.      *
  42.      * @ORM\Column (type="text")
  43.      */
  44.     protected $metaDescription '';
  45.     /**
  46.      * Meta keywords
  47.      *
  48.      * @var string
  49.      *
  50.      * @ORM\Column (type="text")
  51.      */
  52.     protected $metaKeywords '';
  53.     /**
  54.      * @var \QSL\ShopByBrand\Model\Brand
  55.      *
  56.      * @ORM\ManyToOne (targetEntity="QSL\ShopByBrand\Model\Brand", inversedBy="translations")
  57.      * @ORM\JoinColumn (name="id", referencedColumnName="brand_id", onDelete="CASCADE")
  58.      */
  59.     protected $owner;
  60.     /**
  61.      * Get description
  62.      *
  63.      * @return string
  64.      */
  65.     public function getDescription()
  66.     {
  67.         return $this->description;
  68.     }
  69.     /**
  70.      * Set description
  71.      *
  72.      * @param string $description
  73.      *
  74.      * @return BrandTranslation
  75.      */
  76.     public function setDescription($description)
  77.     {
  78.         $this->description $description;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get metaTitle
  83.      *
  84.      * @return string
  85.      */
  86.     public function getMetaTitle()
  87.     {
  88.         return $this->metaTitle;
  89.     }
  90.     /**
  91.      * Set metaTitle
  92.      *
  93.      * @param string $metaTitle
  94.      *
  95.      * @return BrandTranslation
  96.      */
  97.     public function setMetaTitle($metaTitle)
  98.     {
  99.         $this->metaTitle $metaTitle;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get metaDescription
  104.      *
  105.      * @return string
  106.      */
  107.     public function getMetaDescription()
  108.     {
  109.         return $this->metaDescription;
  110.     }
  111.     /**
  112.      * Set metaDescription
  113.      *
  114.      * @param string $metaDescription
  115.      *
  116.      * @return BrandTranslation
  117.      */
  118.     public function setMetaDescription($metaDescription)
  119.     {
  120.         $this->metaDescription $metaDescription;
  121.         return $this;
  122.     }
  123.     /**
  124.      * Get metaKeywords
  125.      *
  126.      * @return string
  127.      */
  128.     public function getMetaKeywords()
  129.     {
  130.         return $this->metaKeywords;
  131.     }
  132.     /**
  133.      * Set metaKeywords
  134.      *
  135.      * @param string $metaKeywords
  136.      *
  137.      * @return BrandTranslation
  138.      */
  139.     public function setMetaKeywords($metaKeywords)
  140.     {
  141.         $this->metaKeywords $metaKeywords;
  142.         return $this;
  143.     }
  144.     /**
  145.      * Get label_id
  146.      *
  147.      * @return int
  148.      */
  149.     public function getLabelId()
  150.     {
  151.         return $this->label_id;
  152.     }
  153.     /**
  154.      * Set code
  155.      *
  156.      * @param string $code
  157.      *
  158.      * @return BrandTranslation
  159.      */
  160.     public function setCode($code)
  161.     {
  162.         $this->code $code;
  163.         return $this;
  164.     }
  165.     /**
  166.      * Get code
  167.      *
  168.      * @return string
  169.      */
  170.     public function getCode()
  171.     {
  172.         return $this->code;
  173.     }
  174. }