src/CoreBundle/Entity/Vehicles/FeatureGroup.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. use function GuzzleHttp\Psr7\str;
  4. /**
  5.  * FeatureGroup
  6.  */
  7. class FeatureGroup
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var integer
  15.      */
  16.     private $temp_id;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $name_ru;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $name_ua;
  25.     /**
  26.      * Get id
  27.      *
  28.      * @return integer
  29.      */
  30.     public function getId()
  31.     {
  32.         return $this->id;
  33.     }
  34.     /**
  35.      * Set tempId
  36.      *
  37.      * @param integer $tempId
  38.      *
  39.      * @return FeatureGroup
  40.      */
  41.     public function setTempId($tempId)
  42.     {
  43.         $this->temp_id $tempId;
  44.         return $this;
  45.     }
  46.     /**
  47.      * Get tempId
  48.      *
  49.      * @return integer
  50.      */
  51.     public function getTempId()
  52.     {
  53.         return $this->temp_id;
  54.     }
  55.     /**
  56.      * Set nameRu
  57.      *
  58.      * @param string $nameRu
  59.      *
  60.      * @return FeatureGroup
  61.      */
  62.     public function setNameRu($nameRu)
  63.     {
  64.         $this->name_ru $nameRu;
  65.         return $this;
  66.     }
  67.     /**
  68.      * Get nameRu
  69.      *
  70.      * @return string
  71.      */
  72.     public function getNameRu()
  73.     {
  74.         return $this->name_ru;
  75.     }
  76.     /**
  77.      * Set nameUa
  78.      *
  79.      * @param string $nameUa
  80.      *
  81.      * @return FeatureGroup
  82.      */
  83.     public function setNameUa($nameUa)
  84.     {
  85.         $this->name_ua $nameUa;
  86.         return $this;
  87.     }
  88.     /**
  89.      * Get nameUa
  90.      *
  91.      * @return string
  92.      */
  93.     public function getNameUa()
  94.     {
  95.         return $this->name_ua;
  96.     }
  97.     public function getNameByLocale($locale)
  98.     {
  99.         return $locale == 'ru' $this->getNameRu() : $this->getNameUa();
  100.     }
  101.     public function __toString()
  102.     {
  103.         return (string) $this->getNameRu();
  104.     }
  105. }