src/DcSiteBundle/Entity/Service/VehicleAccessory.php line 11

Open in your IDE?
  1. <?php
  2. namespace DcSiteBundle\Entity\Service;
  3. use CoreBundle\Entity\Vehicles\Vehicle;
  4. use DcSiteBundle\Entity\Accessories;
  5. /**
  6.  * VehicleAccessory
  7.  */
  8. class VehicleAccessory
  9. {
  10.     /**
  11.      * @var integer
  12.      */
  13.     private $id;
  14.     /**
  15.      * @var float
  16.      */
  17.     private $montage_price;
  18.     /**
  19.      * @var float
  20.      */
  21.     private $montage_hource;
  22.     /**
  23.      * @var Vehicle
  24.      */
  25.     private $vehicle;
  26.     /**
  27.      * @var Accessories
  28.      */
  29.     private $accessory;
  30.     public function __toString()
  31.     {
  32.         return $this->vehicle->getAdminName();
  33.     }
  34.     /**
  35.      * Get id
  36.      *
  37.      * @return integer
  38.      */
  39.     public function getId()
  40.     {
  41.         return $this->id;
  42.     }
  43.     /**
  44.      * Set montagePrice
  45.      *
  46.      * @param float $montagePrice
  47.      *
  48.      * @return VehicleAccessory
  49.      */
  50.     public function setMontagePrice($montagePrice)
  51.     {
  52.         $this->montage_price $montagePrice;
  53.         return $this;
  54.     }
  55.     /**
  56.      * Get montagePrice
  57.      *
  58.      * @return float
  59.      */
  60.     public function getMontagePrice()
  61.     {
  62.         return $this->montage_price;
  63.     }
  64.     /**
  65.      * Set montageHource
  66.      *
  67.      * @param float $montageHource
  68.      *
  69.      * @return VehicleAccessory
  70.      */
  71.     public function setMontageHource($montageHource)
  72.     {
  73.         $this->montage_hource $montageHource;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get montageHource
  78.      *
  79.      * @return float
  80.      */
  81.     public function getMontageHource()
  82.     {
  83.         return $this->montage_hource;
  84.     }
  85.     /**
  86.      * Set vehicle
  87.      *
  88.      * @param Vehicle $vehicle
  89.      *
  90.      * @return VehicleAccessory
  91.      */
  92.     public function setVehicle(Vehicle $vehicle null)
  93.     {
  94.         $this->vehicle $vehicle;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get vehicle
  99.      *
  100.      * @return Vehicle
  101.      */
  102.     public function getVehicle()
  103.     {
  104.         return $this->vehicle;
  105.     }
  106.     /**
  107.      * Set accessory
  108.      *
  109.      * @param Accessories $accessory
  110.      *
  111.      * @return VehicleAccessory
  112.      */
  113.     public function setAccessory(Accessories $accessory null)
  114.     {
  115.         $this->accessory $accessory;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get accessory
  120.      *
  121.      * @return Accessories
  122.      */
  123.     public function getAccessory()
  124.     {
  125.         return $this->accessory;
  126.     }
  127. }