<?phpnamespace DcSiteBundle\Entity;use Doctrine\Common\Collections\ArrayCollection;use CoreBundle\Entity\Dealer;use CoreBundle\Entity\Vehicles\CharacteristicValue;use CoreBundle\Entity\Vehicles\RecommendGroup;use CoreBundle\Entity\Vehicles\Vehicle;use Doctrine\Common\Collections\Collection;/** * ModelRangePages */class ModelRangePages{ /** * @var integer */ private $id; /** * @var string */ private $label_ua; /** * @var string */ private $label_ru; /** * @var string */ private $title_ua; /** * @var string */ private $title_ru; /** * @var string */ private $title_seo_ua; /** * @var string */ private $title_seo_ru; /** * @var string */ private $description_ua; /** * @var string */ private $description_ru; /** * @var string */ private $description_seo_ua; /** * @var string */ private $description_seo_ru; /** * @var string */ private $url; /** * @var integer */ private $position = 0; /** * @var boolean */ private $active = true; /** * @var Dealer */ private $dealer; /** * @var CharacteristicValue */ private $fuel; /** * @var CharacteristicValue */ private $kpp; /** * @var CharacteristicValue */ private $seat; /** * @var RecommendGroup */ private $recommend; /** * @var Collection */ private $vehicles; /** * Constructor */ public function __construct() { $this->vehicles = new ArrayCollection(); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set labelUa * * @param string $labelUa * * @return ModelRangePages */ public function setLabelUa($labelUa) { $this->label_ua = $labelUa; return $this; } /** * Get labelUa * * @return string */ public function getLabelUa() { return $this->label_ua; } /** * Set labelRu * * @param string $labelRu * * @return ModelRangePages */ public function setLabelRu($labelRu) { $this->label_ru = $labelRu; return $this; } /** * Get labelRu * * @return string */ public function getLabelRu() { return $this->label_ru; } /** * Set titleUa * * @param string $titleUa * * @return ModelRangePages */ public function setTitleUa($titleUa) { $this->title_ua = $titleUa; return $this; } /** * Get titleUa * * @return string */ public function getTitleUa() { return $this->title_ua; } /** * Set titleRu * * @param string $titleRu * * @return ModelRangePages */ public function setTitleRu($titleRu) { $this->title_ru = $titleRu; return $this; } /** * Get titleRu * * @return string */ public function getTitleRu() { return $this->title_ru; } public function getTitle($locale = 'ua') { return ($locale == 'ua')? $this->getTitleUa() : $this->getTitleRu(); } /** * Set titleSeoUa * * @param string $titleSeoUa * * @return ModelRangePages */ public function setTitleSeoUa($titleSeoUa) { $this->title_seo_ua = $titleSeoUa; return $this; } /** * Get titleSeoUa * * @return string */ public function getTitleSeoUa() { return $this->title_seo_ua; } /** * Set titleSeoRu * * @param string $titleSeoRu * * @return ModelRangePages */ public function setTitleSeoRu($titleSeoRu) { $this->title_seo_ru = $titleSeoRu; return $this; } /** * Get titleSeoRu * * @return string */ public function getTitleSeoRu() { return $this->title_seo_ru; } public function getTitleSeo($locale = 'ua') { return ($locale == 'ua')? $this->getTitleSeoUa() : $this->getTitleSeoRu(); } /** * Set descriptionUa * * @param string $descriptionUa * * @return ModelRangePages */ public function setDescriptionUa($descriptionUa) { $this->description_ua = $descriptionUa; return $this; } /** * Get descriptionUa * * @return string */ public function getDescriptionUa() { return $this->description_ua; } /** * Set descriptionRu * * @param string $descriptionRu * * @return ModelRangePages */ public function setDescriptionRu($descriptionRu) { $this->description_ru = $descriptionRu; return $this; } /** * Get descriptionRu * * @return string */ public function getDescriptionRu() { return $this->description_ru; } public function getDescription($locale = 'ua') { return ($locale == 'ua')? $this->getDescriptionUa() : $this->getDescriptionRu(); } /** * Set descriptionSeoUa * * @param string $descriptionSeoUa * * @return ModelRangePages */ public function setDescriptionSeoUa($descriptionSeoUa) { $this->description_seo_ua = $descriptionSeoUa; return $this; } /** * Get descriptionSeoUa * * @return string */ public function getDescriptionSeoUa() { return $this->description_seo_ua; } /** * Set descriptionSeoRu * * @param string $descriptionSeoRu * * @return ModelRangePages */ public function setDescriptionSeoRu($descriptionSeoRu) { $this->description_seo_ru = $descriptionSeoRu; return $this; } /** * Get descriptionSeoRu * * @return string */ public function getDescriptionSeoRu() { return $this->description_seo_ru; } public function getDescriptionSeo($locale = 'ua') { return ($locale == 'ua')? $this->getDescriptionSeoUa() : $this->getDescriptionSeoRu(); } /** * Set url * * @param string $url * * @return ModelRangePages */ public function setUrl($url) { $this->url = $url; return $this; } /** * Get url * * @return string */ public function getUrl() { return $this->url; } /** * Set position * * @param integer $position * * @return ModelRangePages */ public function setPosition($position) { $this->position = $position; return $this; } /** * Get position * * @return integer */ public function getPosition() { return $this->position; } /** * Set active * * @param boolean $active * * @return ModelRangePages */ public function setActive($active) { $this->active = $active; return $this; } /** * Get active * * @return boolean */ public function getActive() { return $this->active; } /** * Set dealer * * @param Dealer $dealer * * @return ModelRangePages */ public function setDealer(Dealer $dealer = null) { $this->dealer = $dealer; return $this; } /** * Get dealer * * @return Dealer */ public function getDealer() { return $this->dealer; } /** * Set fuel * * @param CharacteristicValue $fuel * * @return ModelRangePages */ public function setFuel(CharacteristicValue $fuel = null) { $this->fuel = $fuel; return $this; } /** * Get fuel * * @return CharacteristicValue */ public function getFuel() { return $this->fuel; } /** * Set kpp * * @param CharacteristicValue $kpp * * @return ModelRangePages */ public function setKpp(CharacteristicValue $kpp = null) { $this->kpp = $kpp; return $this; } /** * Get kpp * * @return CharacteristicValue */ public function getKpp() { return $this->kpp; } /** * Set seat * * @param CharacteristicValue $seat * * @return ModelRangePages */ public function setSeat(CharacteristicValue $seat = null) { $this->seat = $seat; return $this; } /** * Get seat * * @return CharacteristicValue */ public function getSeat() { return $this->seat; } /** * Set recommend * * @param RecommendGroup $recommend * * @return ModelRangePages */ public function setRecommend(RecommendGroup $recommend = null) { $this->recommend = $recommend; return $this; } /** * Get recommend * * @return RecommendGroup */ public function getRecommend() { return $this->recommend; } /** * Add vehicle * * @param Vehicle $vehicle * * @return ModelRangePages */ public function addVehicle(Vehicle $vehicle) { $this->vehicles[] = $vehicle; return $this; } /** * Remove vehicle * * @param Vehicle $vehicle */ public function removeVehicle(Vehicle $vehicle) { $this->vehicles->removeElement($vehicle); } /** * Get vehicles * * @return Collection */ public function getVehicles() { return $this->vehicles; } /** * @var CharacteristicValue */ private $body; /** * @var CharacteristicValue */ private $color; /** * Set body * * @param CharacteristicValue $body * * @return ModelRangePages */ public function setBody(CharacteristicValue $body = null) { $this->body = $body; return $this; } /** * Get body * * @return CharacteristicValue */ public function getBody() { return $this->body; } /** * Set color * * @param CharacteristicValue $color * * @return ModelRangePages */ public function setColor(CharacteristicValue $color = null) { $this->color = $color; return $this; } /** * Get color * * @return CharacteristicValue */ public function getColor() { return $this->color; } /** * @var integer */ private $price; /** * Set price * * @param integer $price * * @return ModelRangePages */ public function setPrice($price) { $this->price = $price; return $this; } /** * Get price * * @return integer */ public function getPrice() { return $this->price; }}