src/DcSiteBundle/Entity/FuelTypes.php line 8

Open in your IDE?
  1. <?php
  2. namespace DcSiteBundle\Entity;
  3. /**
  4.  * FuelType
  5.  */
  6. class FuelTypes
  7. {
  8.     /**
  9.      * @var int
  10.      */
  11.     private $id;
  12.     /**
  13.      * @var string
  14.      */
  15.     private $valueRu;
  16.     /**
  17.      * @var string
  18.      */
  19.     private $valueUa;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $shortValueRu;
  24.     /**
  25.      * @var string
  26.      */
  27.     private $shortValueUa;
  28.     /**
  29.      * @var int
  30.      */
  31.     private $ref_id;
  32.     /**
  33.      * @return string
  34.      */
  35.     public function __toString()
  36.     {
  37.         return (string)$this->getValueRu();
  38.     }
  39.     /**
  40.      * Get id
  41.      *
  42.      * @return int
  43.      */
  44.     public function getId()
  45.     {
  46.         return $this->id;
  47.     }
  48.     /**
  49.      * Set valueRu
  50.      *
  51.      * @param string $valueRu
  52.      *
  53.      * @return FuelType
  54.      */
  55.     public function setValueRu($valueRu)
  56.     {
  57.         $this->valueRu $valueRu;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get valueRu
  62.      *
  63.      * @return string
  64.      */
  65.     public function getValueRu()
  66.     {
  67.         return $this->valueRu;
  68.     }
  69.     /**
  70.      * Set valueUa
  71.      *
  72.      * @param string $valueUa
  73.      *
  74.      * @return FuelType
  75.      */
  76.     public function setValueUa($valueUa)
  77.     {
  78.         $this->valueUa $valueUa;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get valueUa
  83.      *
  84.      * @return string
  85.      */
  86.     public function getValueUa()
  87.     {
  88.         return $this->valueUa;
  89.     }
  90.     /**
  91.      * @return int
  92.      */
  93.     public function getRefId()
  94.     {
  95.         return $this->ref_id;
  96.     }
  97.     /**
  98.      * @param int $ref_id
  99.      * @return FuelTypes
  100.      */
  101.     public function setRefId($ref_id)
  102.     {
  103.         $this->ref_id $ref_id;
  104.         return $this;
  105.     }
  106.     /**
  107.      * @param string $locale
  108.      * @return string
  109.      */
  110.     public function getValue($locale 'ru')
  111.     {
  112.         return $locale === 'ru' $this->getValueRu() : $this->getValueUa();
  113.     }
  114.     /**
  115.      * @var string
  116.      */
  117.     private $uid_1c;
  118.     /**
  119.      * Set uid1c
  120.      *
  121.      * @param string $uid1c
  122.      *
  123.      * @return FuelTypes
  124.      */
  125.     public function setUid1c($uid1c)
  126.     {
  127.         $this->uid_1c $uid1c;
  128.         return $this;
  129.     }
  130.     /**
  131.      * Get uid1c
  132.      *
  133.      * @return string
  134.      */
  135.     public function getUid1c()
  136.     {
  137.         return $this->uid_1c;
  138.     }
  139.     /**
  140.      * @param string $shortValueUa
  141.      * @return $this
  142.      */
  143.     public function setShortValueUa($shortValueUa)
  144.     {
  145.         $this->shortValueUa $shortValueUa;
  146.         return $this;
  147.     }
  148.     /**
  149.      * @return string
  150.      */
  151.     public function getShortValueUa()
  152.     {
  153.         return $this->shortValueUa;
  154.     }
  155.     /**
  156.      * @param string $shortValueRu
  157.      * @return $this
  158.      */
  159.     public function setShortValueRu($shortValueRu)
  160.     {
  161.         $this->shortValueRu $shortValueRu;
  162.         return $this;
  163.     }
  164.     /**
  165.      * @return string
  166.      */
  167.     public function getShortValueRu()
  168.     {
  169.         return $this->shortValueRu;
  170.     }
  171.     /**
  172.      * @param string $locale
  173.      * @return string
  174.      */
  175.     public function getShort($locale 'ru')
  176.     {
  177.         return $locale === 'ru' $this->getShortValueRu() : $this->getShortValueUa();
  178.     }
  179. }