src/DcSiteBundle/Entity/ModelRangePages.php line 15

Open in your IDE?
  1. <?php
  2. namespace DcSiteBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use CoreBundle\Entity\Dealer;
  5. use CoreBundle\Entity\Vehicles\CharacteristicValue;
  6. use CoreBundle\Entity\Vehicles\RecommendGroup;
  7. use CoreBundle\Entity\Vehicles\Vehicle;
  8. use Doctrine\Common\Collections\Collection;
  9. /**
  10.  * ModelRangePages
  11.  */
  12. class ModelRangePages
  13. {
  14.     /**
  15.      * @var integer
  16.      */
  17.     private $id;
  18.     /**
  19.      * @var string
  20.      */
  21.     private $label_ua;
  22.     /**
  23.      * @var string
  24.      */
  25.     private $label_ru;
  26.     /**
  27.      * @var string
  28.      */
  29.     private $title_ua;
  30.     /**
  31.      * @var string
  32.      */
  33.     private $title_ru;
  34.     /**
  35.      * @var string
  36.      */
  37.     private $title_seo_ua;
  38.     /**
  39.      * @var string
  40.      */
  41.     private $title_seo_ru;
  42.     /**
  43.      * @var string
  44.      */
  45.     private $description_ua;
  46.     /**
  47.      * @var string
  48.      */
  49.     private $description_ru;
  50.     /**
  51.      * @var string
  52.      */
  53.     private $description_seo_ua;
  54.     /**
  55.      * @var string
  56.      */
  57.     private $description_seo_ru;
  58.     /**
  59.      * @var string
  60.      */
  61.     private $url;
  62.     /**
  63.      * @var integer
  64.      */
  65.     private $position 0;
  66.     /**
  67.      * @var boolean
  68.      */
  69.     private $active true;
  70.     /**
  71.      * @var Dealer
  72.      */
  73.     private $dealer;
  74.     /**
  75.      * @var CharacteristicValue
  76.      */
  77.     private $fuel;
  78.     /**
  79.      * @var CharacteristicValue
  80.      */
  81.     private $kpp;
  82.     /**
  83.      * @var CharacteristicValue
  84.      */
  85.     private $seat;
  86.     /**
  87.      * @var RecommendGroup
  88.      */
  89.     private $recommend;
  90.     /**
  91.      * @var Collection
  92.      */
  93.     private $vehicles;
  94.     /**
  95.      * Constructor
  96.      */
  97.     public function __construct()
  98.     {
  99.         $this->vehicles = new ArrayCollection();
  100.     }
  101.     /**
  102.      * Get id
  103.      *
  104.      * @return integer
  105.      */
  106.     public function getId()
  107.     {
  108.         return $this->id;
  109.     }
  110.     /**
  111.      * Set labelUa
  112.      *
  113.      * @param string $labelUa
  114.      *
  115.      * @return ModelRangePages
  116.      */
  117.     public function setLabelUa($labelUa)
  118.     {
  119.         $this->label_ua $labelUa;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get labelUa
  124.      *
  125.      * @return string
  126.      */
  127.     public function getLabelUa()
  128.     {
  129.         return $this->label_ua;
  130.     }
  131.     /**
  132.      * Set labelRu
  133.      *
  134.      * @param string $labelRu
  135.      *
  136.      * @return ModelRangePages
  137.      */
  138.     public function setLabelRu($labelRu)
  139.     {
  140.         $this->label_ru $labelRu;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get labelRu
  145.      *
  146.      * @return string
  147.      */
  148.     public function getLabelRu()
  149.     {
  150.         return $this->label_ru;
  151.     }
  152.     /**
  153.      * Set titleUa
  154.      *
  155.      * @param string $titleUa
  156.      *
  157.      * @return ModelRangePages
  158.      */
  159.     public function setTitleUa($titleUa)
  160.     {
  161.         $this->title_ua $titleUa;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get titleUa
  166.      *
  167.      * @return string
  168.      */
  169.     public function getTitleUa()
  170.     {
  171.         return $this->title_ua;
  172.     }
  173.     /**
  174.      * Set titleRu
  175.      *
  176.      * @param string $titleRu
  177.      *
  178.      * @return ModelRangePages
  179.      */
  180.     public function setTitleRu($titleRu)
  181.     {
  182.         $this->title_ru $titleRu;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get titleRu
  187.      *
  188.      * @return string
  189.      */
  190.     public function getTitleRu()
  191.     {
  192.         return $this->title_ru;
  193.     }
  194.     public function getTitle($locale 'ua')
  195.     {
  196.         return ($locale == 'ua')? $this->getTitleUa() : $this->getTitleRu();
  197.     }
  198.     /**
  199.      * Set titleSeoUa
  200.      *
  201.      * @param string $titleSeoUa
  202.      *
  203.      * @return ModelRangePages
  204.      */
  205.     public function setTitleSeoUa($titleSeoUa)
  206.     {
  207.         $this->title_seo_ua $titleSeoUa;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get titleSeoUa
  212.      *
  213.      * @return string
  214.      */
  215.     public function getTitleSeoUa()
  216.     {
  217.         return $this->title_seo_ua;
  218.     }
  219.     /**
  220.      * Set titleSeoRu
  221.      *
  222.      * @param string $titleSeoRu
  223.      *
  224.      * @return ModelRangePages
  225.      */
  226.     public function setTitleSeoRu($titleSeoRu)
  227.     {
  228.         $this->title_seo_ru $titleSeoRu;
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get titleSeoRu
  233.      *
  234.      * @return string
  235.      */
  236.     public function getTitleSeoRu()
  237.     {
  238.         return $this->title_seo_ru;
  239.     }
  240.     public function getTitleSeo($locale 'ua')
  241.     {
  242.         return ($locale == 'ua')? $this->getTitleSeoUa() : $this->getTitleSeoRu();
  243.     }
  244.     /**
  245.      * Set descriptionUa
  246.      *
  247.      * @param string $descriptionUa
  248.      *
  249.      * @return ModelRangePages
  250.      */
  251.     public function setDescriptionUa($descriptionUa)
  252.     {
  253.         $this->description_ua $descriptionUa;
  254.         return $this;
  255.     }
  256.     /**
  257.      * Get descriptionUa
  258.      *
  259.      * @return string
  260.      */
  261.     public function getDescriptionUa()
  262.     {
  263.         return $this->description_ua;
  264.     }
  265.     /**
  266.      * Set descriptionRu
  267.      *
  268.      * @param string $descriptionRu
  269.      *
  270.      * @return ModelRangePages
  271.      */
  272.     public function setDescriptionRu($descriptionRu)
  273.     {
  274.         $this->description_ru $descriptionRu;
  275.         return $this;
  276.     }
  277.     /**
  278.      * Get descriptionRu
  279.      *
  280.      * @return string
  281.      */
  282.     public function getDescriptionRu()
  283.     {
  284.         return $this->description_ru;
  285.     }
  286.     public function getDescription($locale 'ua')
  287.     {
  288.         return ($locale == 'ua')? $this->getDescriptionUa() : $this->getDescriptionRu();
  289.     }
  290.     /**
  291.      * Set descriptionSeoUa
  292.      *
  293.      * @param string $descriptionSeoUa
  294.      *
  295.      * @return ModelRangePages
  296.      */
  297.     public function setDescriptionSeoUa($descriptionSeoUa)
  298.     {
  299.         $this->description_seo_ua $descriptionSeoUa;
  300.         return $this;
  301.     }
  302.     /**
  303.      * Get descriptionSeoUa
  304.      *
  305.      * @return string
  306.      */
  307.     public function getDescriptionSeoUa()
  308.     {
  309.         return $this->description_seo_ua;
  310.     }
  311.     /**
  312.      * Set descriptionSeoRu
  313.      *
  314.      * @param string $descriptionSeoRu
  315.      *
  316.      * @return ModelRangePages
  317.      */
  318.     public function setDescriptionSeoRu($descriptionSeoRu)
  319.     {
  320.         $this->description_seo_ru $descriptionSeoRu;
  321.         return $this;
  322.     }
  323.     /**
  324.      * Get descriptionSeoRu
  325.      *
  326.      * @return string
  327.      */
  328.     public function getDescriptionSeoRu()
  329.     {
  330.         return $this->description_seo_ru;
  331.     }
  332.     public function getDescriptionSeo($locale 'ua')
  333.     {
  334.         return ($locale == 'ua')? $this->getDescriptionSeoUa() : $this->getDescriptionSeoRu();
  335.     }
  336.     /**
  337.      * Set url
  338.      *
  339.      * @param string $url
  340.      *
  341.      * @return ModelRangePages
  342.      */
  343.     public function setUrl($url)
  344.     {
  345.         $this->url $url;
  346.         return $this;
  347.     }
  348.     /**
  349.      * Get url
  350.      *
  351.      * @return string
  352.      */
  353.     public function getUrl()
  354.     {
  355.         return $this->url;
  356.     }
  357.     /**
  358.      * Set position
  359.      *
  360.      * @param integer $position
  361.      *
  362.      * @return ModelRangePages
  363.      */
  364.     public function setPosition($position)
  365.     {
  366.         $this->position $position;
  367.         return $this;
  368.     }
  369.     /**
  370.      * Get position
  371.      *
  372.      * @return integer
  373.      */
  374.     public function getPosition()
  375.     {
  376.         return $this->position;
  377.     }
  378.     /**
  379.      * Set active
  380.      *
  381.      * @param boolean $active
  382.      *
  383.      * @return ModelRangePages
  384.      */
  385.     public function setActive($active)
  386.     {
  387.         $this->active $active;
  388.         return $this;
  389.     }
  390.     /**
  391.      * Get active
  392.      *
  393.      * @return boolean
  394.      */
  395.     public function getActive()
  396.     {
  397.         return $this->active;
  398.     }
  399.     /**
  400.      * Set dealer
  401.      *
  402.      * @param Dealer $dealer
  403.      *
  404.      * @return ModelRangePages
  405.      */
  406.     public function setDealer(Dealer $dealer null)
  407.     {
  408.         $this->dealer $dealer;
  409.         return $this;
  410.     }
  411.     /**
  412.      * Get dealer
  413.      *
  414.      * @return Dealer
  415.      */
  416.     public function getDealer()
  417.     {
  418.         return $this->dealer;
  419.     }
  420.     /**
  421.      * Set fuel
  422.      *
  423.      * @param CharacteristicValue $fuel
  424.      *
  425.      * @return ModelRangePages
  426.      */
  427.     public function setFuel(CharacteristicValue $fuel null)
  428.     {
  429.         $this->fuel $fuel;
  430.         return $this;
  431.     }
  432.     /**
  433.      * Get fuel
  434.      *
  435.      * @return CharacteristicValue
  436.      */
  437.     public function getFuel()
  438.     {
  439.         return $this->fuel;
  440.     }
  441.     /**
  442.      * Set kpp
  443.      *
  444.      * @param CharacteristicValue $kpp
  445.      *
  446.      * @return ModelRangePages
  447.      */
  448.     public function setKpp(CharacteristicValue $kpp null)
  449.     {
  450.         $this->kpp $kpp;
  451.         return $this;
  452.     }
  453.     /**
  454.      * Get kpp
  455.      *
  456.      * @return CharacteristicValue
  457.      */
  458.     public function getKpp()
  459.     {
  460.         return $this->kpp;
  461.     }
  462.     /**
  463.      * Set seat
  464.      *
  465.      * @param CharacteristicValue $seat
  466.      *
  467.      * @return ModelRangePages
  468.      */
  469.     public function setSeat(CharacteristicValue $seat null)
  470.     {
  471.         $this->seat $seat;
  472.         return $this;
  473.     }
  474.     /**
  475.      * Get seat
  476.      *
  477.      * @return CharacteristicValue
  478.      */
  479.     public function getSeat()
  480.     {
  481.         return $this->seat;
  482.     }
  483.     /**
  484.      * Set recommend
  485.      *
  486.      * @param RecommendGroup $recommend
  487.      *
  488.      * @return ModelRangePages
  489.      */
  490.     public function setRecommend(RecommendGroup $recommend null)
  491.     {
  492.         $this->recommend $recommend;
  493.         return $this;
  494.     }
  495.     /**
  496.      * Get recommend
  497.      *
  498.      * @return RecommendGroup
  499.      */
  500.     public function getRecommend()
  501.     {
  502.         return $this->recommend;
  503.     }
  504.     /**
  505.      * Add vehicle
  506.      *
  507.      * @param Vehicle $vehicle
  508.      *
  509.      * @return ModelRangePages
  510.      */
  511.     public function addVehicle(Vehicle $vehicle)
  512.     {
  513.         $this->vehicles[] = $vehicle;
  514.         return $this;
  515.     }
  516.     /**
  517.      * Remove vehicle
  518.      *
  519.      * @param Vehicle $vehicle
  520.      */
  521.     public function removeVehicle(Vehicle $vehicle)
  522.     {
  523.         $this->vehicles->removeElement($vehicle);
  524.     }
  525.     /**
  526.      * Get vehicles
  527.      *
  528.      * @return Collection
  529.      */
  530.     public function getVehicles()
  531.     {
  532.         return $this->vehicles;
  533.     }
  534.     /**
  535.      * @var CharacteristicValue
  536.      */
  537.     private $body;
  538.     /**
  539.      * @var CharacteristicValue
  540.      */
  541.     private $color;
  542.     /**
  543.      * Set body
  544.      *
  545.      * @param CharacteristicValue $body
  546.      *
  547.      * @return ModelRangePages
  548.      */
  549.     public function setBody(CharacteristicValue $body null)
  550.     {
  551.         $this->body $body;
  552.         return $this;
  553.     }
  554.     /**
  555.      * Get body
  556.      *
  557.      * @return CharacteristicValue
  558.      */
  559.     public function getBody()
  560.     {
  561.         return $this->body;
  562.     }
  563.     /**
  564.      * Set color
  565.      *
  566.      * @param CharacteristicValue $color
  567.      *
  568.      * @return ModelRangePages
  569.      */
  570.     public function setColor(CharacteristicValue $color null)
  571.     {
  572.         $this->color $color;
  573.         return $this;
  574.     }
  575.     /**
  576.      * Get color
  577.      *
  578.      * @return CharacteristicValue
  579.      */
  580.     public function getColor()
  581.     {
  582.         return $this->color;
  583.     }
  584.     /**
  585.      * @var integer
  586.      */
  587.     private $price;
  588.     /**
  589.      * Set price
  590.      *
  591.      * @param integer $price
  592.      *
  593.      * @return ModelRangePages
  594.      */
  595.     public function setPrice($price)
  596.     {
  597.         $this->price $price;
  598.         return $this;
  599.     }
  600.     /**
  601.      * Get price
  602.      *
  603.      * @return integer
  604.      */
  605.     public function getPrice()
  606.     {
  607.         return $this->price;
  608.     }
  609. }