src/CoreBundle/Entity/Vehicles/CharacteristicGroup.php line 8

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