modules/CDev/SimpleCMS/src/Model/MenuTranslation.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 CDev\SimpleCMS\Model;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * Menu translation
  10.  *
  11.  * @ORM\Entity
  12.  * @ORM\Table  (name="menu_translations",
  13.  *      indexes={
  14.  *          @ORM\Index (name="ci", columns={"code", "id"}),
  15.  *          @ORM\Index (name="id", columns={"id"})
  16.  *      }
  17.  * )
  18.  */
  19. class MenuTranslation extends \XLite\Model\Base\Translation
  20. {
  21.     /**
  22.      * Name
  23.      *
  24.      * @var string
  25.      *
  26.      * @ORM\Column (type="string")
  27.      */
  28.     protected $name;
  29.     /**
  30.      * @var \CDev\SimpleCMS\Model\Menu
  31.      *
  32.      * @ORM\ManyToOne (targetEntity="CDev\SimpleCMS\Model\Menu", inversedBy="translations")
  33.      * @ORM\JoinColumn (name="id", referencedColumnName="id", onDelete="CASCADE")
  34.      */
  35.     protected $owner;
  36.     /**
  37.      * Set name
  38.      *
  39.      * @param string $name
  40.      * @return MenuTranslation
  41.      */
  42.     public function setName($name)
  43.     {
  44.         $this->name $name;
  45.         return $this;
  46.     }
  47.     /**
  48.      * Get name
  49.      *
  50.      * @return string
  51.      */
  52.     public function getName()
  53.     {
  54.         return $this->name;
  55.     }
  56.     /**
  57.      * Get label_id
  58.      *
  59.      * @return integer
  60.      */
  61.     public function getLabelId()
  62.     {
  63.         return $this->label_id;
  64.     }
  65.     /**
  66.      * Set code
  67.      *
  68.      * @param string $code
  69.      * @return MenuTranslation
  70.      */
  71.     public function setCode($code)
  72.     {
  73.         $this->code $code;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get code
  78.      *
  79.      * @return string
  80.      */
  81.     public function getCode()
  82.     {
  83.         return $this->code;
  84.     }
  85. }