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