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

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity\Vehicles;
  3. use CoreBundle\Entity\Dealer;
  4. /**
  5.  * EquipmentOption
  6.  */
  7. class EquipmentOption
  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 $title_ru;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $title_ua;
  25.     /**
  26.      * @var integer
  27.      */
  28.     private $option_type;
  29.     /**
  30.      * @var integer
  31.      */
  32.     private $has_value;
  33.     /**
  34.      * @var Dealer
  35.      */
  36.     private $dealer;
  37.     /**
  38.      * @var integer
  39.      */
  40.     private $sort;
  41.     /**
  42.      * Get id
  43.      *
  44.      * @return integer
  45.      */
  46.     public function getId()
  47.     {
  48.         return $this->id;
  49.     }
  50.     /**
  51.      * Set tempId
  52.      *
  53.      * @param integer $tempId
  54.      *
  55.      * @return EquipmentOption
  56.      */
  57.     public function setTempId($tempId)
  58.     {
  59.         $this->temp_id $tempId;
  60.         return $this;
  61.     }
  62.     /**
  63.      * Get tempId
  64.      *
  65.      * @return integer
  66.      */
  67.     public function getTempId()
  68.     {
  69.         return $this->temp_id;
  70.     }
  71.     /**
  72.      * Set titleRu
  73.      *
  74.      * @param string $titleRu
  75.      *
  76.      * @return EquipmentOption
  77.      */
  78.     public function setTitleRu($titleRu)
  79.     {
  80.         $this->title_ru $titleRu;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get titleRu
  85.      *
  86.      * @return string
  87.      */
  88.     public function getTitleRu()
  89.     {
  90.         return $this->title_ru;
  91.     }
  92.     /**
  93.      * Set titleUa
  94.      *
  95.      * @param string $titleUa
  96.      *
  97.      * @return EquipmentOption
  98.      */
  99.     public function setTitleUa($titleUa)
  100.     {
  101.         $this->title_ua $titleUa;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get titleUa
  106.      *
  107.      * @return string
  108.      */
  109.     public function getTitleUa()
  110.     {
  111.         return $this->title_ua;
  112.     }
  113.     public function getTitle($locale)
  114.     {
  115.         return $locale == 'ru' $this->getTitleRu() : $this->getTitleUa();
  116.     }
  117.     /**
  118.      * Set optionType
  119.      *
  120.      * @param integer $optionType
  121.      *
  122.      * @return EquipmentOption
  123.      */
  124.     public function setOptionType($optionType)
  125.     {
  126.         $this->option_type $optionType;
  127.         return $this;
  128.     }
  129.     /**
  130.      * Get optionType
  131.      *
  132.      * @return integer
  133.      */
  134.     public function getOptionType()
  135.     {
  136.         return $this->option_type;
  137.     }
  138.     /**
  139.      * Set hasValue
  140.      *
  141.      * @param integer $hasValue
  142.      *
  143.      * @return EquipmentOption
  144.      */
  145.     public function setHasValue($hasValue)
  146.     {
  147.         $this->has_value $hasValue;
  148.         return $this;
  149.     }
  150.     /**
  151.      * Get hasValue
  152.      *
  153.      * @return integer
  154.      */
  155.     public function getHasValue()
  156.     {
  157.         return $this->has_value;
  158.     }
  159.     /**
  160.      * Set dealer
  161.      *
  162.      * @param Dealer $dealer
  163.      *
  164.      * @return EquipmentOption
  165.      */
  166.     public function setDealer(Dealer $dealer null)
  167.     {
  168.         $this->dealer $dealer;
  169.         return $this;
  170.     }
  171.     /**
  172.      * Get dealer
  173.      *
  174.      * @return Dealer
  175.      */
  176.     public function getDealer()
  177.     {
  178.         return $this->dealer;
  179.     }
  180.     public function getSort(): ?int
  181.     {
  182.         return $this->sort;
  183.     }
  184.     public function setSort(?int $sort): self
  185.     {
  186.         $this->sort $sort;
  187.         return $this;
  188.     }
  189. }