src/CoreBundle/Entity/Units.php line 8

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. /**
  4.  * Units
  5.  */
  6. class Units
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $nameRu;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $nameUa;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $shortRu;
  24.     /**
  25.      * @var string
  26.      */
  27.     private $shortUa;
  28.     public function __toString()
  29.     {
  30.         return (string)$this->getNameRu();
  31.     }
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return int
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * Set nameRu
  43.      *
  44.      * @param string $nameRu
  45.      *
  46.      * @return Units
  47.      */
  48.     public function setNameRu($nameRu)
  49.     {
  50.         $this->nameRu $nameRu;
  51.         return $this;
  52.     }
  53.     /**
  54.      * Get nameRu
  55.      *
  56.      * @return string
  57.      */
  58.     public function getNameRu()
  59.     {
  60.         return $this->nameRu;
  61.     }
  62.     /**
  63.      * Set nameUa
  64.      *
  65.      * @param string $nameUa
  66.      *
  67.      * @return Units
  68.      */
  69.     public function setNameUa($nameUa)
  70.     {
  71.         $this->nameUa $nameUa;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get nameUa
  76.      *
  77.      * @return string
  78.      */
  79.     public function getNameUa()
  80.     {
  81.         return $this->nameUa;
  82.     }
  83.     /**
  84.      * Set shortRu
  85.      *
  86.      * @param string $shortRu
  87.      *
  88.      * @return Units
  89.      */
  90.     public function setShortRu($shortRu)
  91.     {
  92.         $this->shortRu $shortRu;
  93.         return $this;
  94.     }
  95.     /**
  96.      * Get shortRu
  97.      *
  98.      * @return string
  99.      */
  100.     public function getShortRu()
  101.     {
  102.         return $this->shortRu;
  103.     }
  104.     /**
  105.      * Set shortUa
  106.      *
  107.      * @param string $shortUa
  108.      *
  109.      * @return Units
  110.      */
  111.     public function setShortUa($shortUa)
  112.     {
  113.         $this->shortUa $shortUa;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get shortUa
  118.      *
  119.      * @return string
  120.      */
  121.     public function getShortUa()
  122.     {
  123.         return $this->shortUa;
  124.     }
  125.     public function getShort($locale 'ua')
  126.     {
  127.         return $locale == 'ua' $this->getShortUa() : $this->getShortRu();
  128.     }
  129.     /**
  130.      * @var string
  131.      */
  132.     private $uid_1c;
  133.     /**
  134.      * Set uid1c
  135.      *
  136.      * @param string $uid1c
  137.      *
  138.      * @return Units
  139.      */
  140.     public function setUid1c($uid1c)
  141.     {
  142.         $this->uid_1c $uid1c;
  143.         return $this;
  144.     }
  145.     /**
  146.      * Get uid1c
  147.      *
  148.      * @return string
  149.      */
  150.     public function getUid1c()
  151.     {
  152.         return $this->uid_1c;
  153.     }
  154. }