<?phpnamespace CoreBundle\Entity\Vehicles;use CoreBundle\Entity\Dealer;/** * EquipmentOption */class EquipmentOption{ /** * @var integer */ private $id; /** * @var integer */ private $temp_id; /** * @var string */ private $title_ru; /** * @var string */ private $title_ua; /** * @var integer */ private $option_type; /** * @var integer */ private $has_value; /** * @var Dealer */ private $dealer; /** * @var integer */ private $sort; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set tempId * * @param integer $tempId * * @return EquipmentOption */ public function setTempId($tempId) { $this->temp_id = $tempId; return $this; } /** * Get tempId * * @return integer */ public function getTempId() { return $this->temp_id; } /** * Set titleRu * * @param string $titleRu * * @return EquipmentOption */ public function setTitleRu($titleRu) { $this->title_ru = $titleRu; return $this; } /** * Get titleRu * * @return string */ public function getTitleRu() { return $this->title_ru; } /** * Set titleUa * * @param string $titleUa * * @return EquipmentOption */ public function setTitleUa($titleUa) { $this->title_ua = $titleUa; return $this; } /** * Get titleUa * * @return string */ public function getTitleUa() { return $this->title_ua; } public function getTitle($locale) { return $locale == 'ru' ? $this->getTitleRu() : $this->getTitleUa(); } /** * Set optionType * * @param integer $optionType * * @return EquipmentOption */ public function setOptionType($optionType) { $this->option_type = $optionType; return $this; } /** * Get optionType * * @return integer */ public function getOptionType() { return $this->option_type; } /** * Set hasValue * * @param integer $hasValue * * @return EquipmentOption */ public function setHasValue($hasValue) { $this->has_value = $hasValue; return $this; } /** * Get hasValue * * @return integer */ public function getHasValue() { return $this->has_value; } /** * Set dealer * * @param Dealer $dealer * * @return EquipmentOption */ public function setDealer(Dealer $dealer = null) { $this->dealer = $dealer; return $this; } /** * Get dealer * * @return Dealer */ public function getDealer() { return $this->dealer; } public function getSort(): ?int { return $this->sort; } public function setSort(?int $sort): self { $this->sort = $sort; return $this; }}