src/BmpGatewayBundle/Entity/VehicleTestDrive.php line 16

Open in your IDE?
  1. <?php
  2. namespace BmpGatewayBundle\Entity;
  3. use CoreBundle\Entity\Dealer;
  4. use CoreBundle\Entity\Brand;
  5. use CoreBundle\Entity\Model;
  6. use CoreBundle\Entity\Vehicles\Vehicle;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use DcSiteBundle\Entity\TestDriveRoutes;
  9. use Doctrine\Common\Collections\Collection;
  10. /**
  11.  * VehicleTestDrive
  12.  */
  13. class VehicleTestDrive
  14. {
  15.     /**
  16.      * @var integer
  17.      */
  18.     private $id;
  19.     /**
  20.      * @var string
  21.      */
  22.     private $crm_id;
  23.     /**
  24.      * @var string
  25.      */
  26.     private $name;
  27.     /**
  28.      * @var string
  29.      */
  30.     private $configuration_name;
  31.     /**
  32.      * @var string
  33.      */
  34.     private $vin;
  35.     /**
  36.      * @var string
  37.      */
  38.     private $crm_brand_id;
  39.     /**
  40.      * @var string
  41.      */
  42.     private $crm_dealer_id;
  43.     /**
  44.      * @var string
  45.      */
  46.     private $crm_model_id;
  47.     /**
  48.      * @var string
  49.      */
  50.     private $crm_model_name;
  51.     /**
  52.      * @var integer
  53.      */
  54.     private $year;
  55.     /**
  56.      * @var integer
  57.      */
  58.     private $state;
  59.     /**
  60.      * @var Dealer
  61.      */
  62.     private $dealer;
  63.     /**
  64.      * @var Brand
  65.      */
  66.     private $brand;
  67.     /**
  68.      * @var Model
  69.      */
  70.     private $model;
  71.     /**
  72.      * @return int
  73.      */
  74.     public function getId()
  75.     {
  76.         return $this->id;
  77.     }
  78.     /**
  79.      * @param int $id
  80.      */
  81.     public function setId($id)
  82.     {
  83.         $this->id $id;
  84.     }
  85.     /**
  86.      * @return string
  87.      */
  88.     public function getCrmId()
  89.     {
  90.         return $this->crm_id;
  91.     }
  92.     /**
  93.      * @param string $crm_id
  94.      */
  95.     public function setCrmId($crm_id)
  96.     {
  97.         $this->crm_id $crm_id;
  98.     }
  99.     /**
  100.      * @return string
  101.      */
  102.     public function getName()
  103.     {
  104.         return $this->name;
  105.     }
  106.     /**
  107.      * @param string $name
  108.      */
  109.     public function setName($name)
  110.     {
  111.         $this->name $name;
  112.     }
  113.     /**
  114.      * @return string
  115.      */
  116.     public function getConfigurationName()
  117.     {
  118.         return $this->configuration_name;
  119.     }
  120.     /**
  121.      * @param string $configuration_name
  122.      */
  123.     public function setConfigurationName($configuration_name)
  124.     {
  125.         $this->configuration_name $configuration_name;
  126.     }
  127.     /**
  128.      * @return string
  129.      */
  130.     public function getVin()
  131.     {
  132.         return $this->vin;
  133.     }
  134.     /**
  135.      * @param string $vin
  136.      */
  137.     public function setVin($vin)
  138.     {
  139.         $this->vin $vin;
  140.     }
  141.     /**
  142.      * @return string
  143.      */
  144.     public function getCrmBrandId()
  145.     {
  146.         return $this->crm_brand_id;
  147.     }
  148.     /**
  149.      * @param string $crm_brand_id
  150.      */
  151.     public function setCrmBrandId($crm_brand_id)
  152.     {
  153.         $this->crm_brand_id $crm_brand_id;
  154.     }
  155.     /**
  156.      * @return string
  157.      */
  158.     public function getCrmDealerId()
  159.     {
  160.         return $this->crm_dealer_id;
  161.     }
  162.     /**
  163.      * @param string $crm_dealer_id
  164.      */
  165.     public function setCrmDealerId($crm_dealer_id)
  166.     {
  167.         $this->crm_dealer_id $crm_dealer_id;
  168.     }
  169.     /**
  170.      * @return string
  171.      */
  172.     public function getCrmModelId()
  173.     {
  174.         return $this->crm_model_id;
  175.     }
  176.     /**
  177.      * @param string $crm_model_id
  178.      */
  179.     public function setCrmModelId($crm_model_id)
  180.     {
  181.         $this->crm_model_id $crm_model_id;
  182.     }
  183.     /**
  184.      * @return string
  185.      */
  186.     public function getCrmModelName()
  187.     {
  188.         return $this->crm_model_name;
  189.     }
  190.     /**
  191.      * @param string $crm_model_name
  192.      */
  193.     public function setCrmModelName($crm_model_name)
  194.     {
  195.         $this->crm_model_name $crm_model_name;
  196.     }
  197.     /**
  198.      * @return int
  199.      */
  200.     public function getYear()
  201.     {
  202.         return $this->year;
  203.     }
  204.     /**
  205.      * @param int $year
  206.      */
  207.     public function setYear($year)
  208.     {
  209.         $this->year $year;
  210.     }
  211.     /**
  212.      * @return int
  213.      */
  214.     public function getState()
  215.     {
  216.         return $this->state;
  217.     }
  218.     /**
  219.      * @param int $state
  220.      */
  221.     public function setState($state)
  222.     {
  223.         $this->state $state;
  224.     }
  225.     /**
  226.      * @return Dealer
  227.      */
  228.     public function getDealer()
  229.     {
  230.         return $this->dealer;
  231.     }
  232.     /**
  233.      * @param Dealer $dealer
  234.      *
  235.      * @return VehicleTestDrive
  236.      */
  237.     public function setDealer(Dealer $dealer)
  238.     {
  239.         $this->dealer $dealer;
  240.         return $this;
  241.     }
  242.     /**
  243.      * @return Brand
  244.      */
  245.     public function getBrand()
  246.     {
  247.         return $this->brand;
  248.     }
  249.     /**
  250.      * @param Brand $brand
  251.      *
  252.      * @return VehicleTestDrive
  253.      */
  254.     public function setBrand(Brand $brand)
  255.     {
  256.         $this->brand $brand;
  257.         return $this;
  258.     }
  259.     /**
  260.      * @return Model
  261.      */
  262.     public function getModel()
  263.     {
  264.         return $this->model;
  265.     }
  266.     /**
  267.      * @param Model $model
  268.      */
  269.     public function setModel(Model $model)
  270.     {
  271.         $this->model $model;
  272.         return $this;
  273.     }
  274.     /**
  275.      * @var Vehicle
  276.      */
  277.     private $vehicle;
  278.     /**
  279.      * Set vehicle
  280.      *
  281.      * @param Vehicle $vehicle
  282.      *
  283.      * @return VehicleTestDrive
  284.      */
  285.     public function setVehicle(Vehicle $vehicle null)
  286.     {
  287.         $this->vehicle $vehicle;
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get vehicle
  292.      *
  293.      * @return Vehicle
  294.      */
  295.     public function getVehicle()
  296.     {
  297.         return $this->vehicle;
  298.     }
  299.     /**
  300.      * @var integer
  301.      */
  302.     private $is_manual;
  303.     /**
  304.      * Set isManual
  305.      *
  306.      * @param integer $isManual
  307.      *
  308.      * @return VehicleTestDrive
  309.      */
  310.     public function setIsManual($isManual)
  311.     {
  312.         $this->is_manual $isManual;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get isManual
  317.      *
  318.      * @return integer
  319.      */
  320.     public function getIsManual()
  321.     {
  322.         return $this->is_manual;
  323.     }
  324.     /**
  325.      * @var Collection
  326.      */
  327.     private $test_drive_routes;
  328.     /**
  329.      * Constructor
  330.      */
  331.     public function __construct()
  332.     {
  333.         $this->test_drive_routes = new ArrayCollection();
  334.     }
  335.     /**
  336.      * Add testDriveRoute
  337.      *
  338.      * @param TestDriveRoutes $testDriveRoute
  339.      *
  340.      * @return VehicleTestDrive
  341.      */
  342.     public function addTestDriveRoute(TestDriveRoutes $testDriveRoute)
  343.     {
  344.         $this->test_drive_routes[] = $testDriveRoute;
  345.         return $this;
  346.     }
  347.     /**
  348.      * Remove testDriveRoute
  349.      *
  350.      * @param TestDriveRoutes $testDriveRoute
  351.      */
  352.     public function removeTestDriveRoute(TestDriveRoutes $testDriveRoute)
  353.     {
  354.         $this->test_drive_routes->removeElement($testDriveRoute);
  355.     }
  356.     /**
  357.      * Get testDriveRoutes
  358.      *
  359.      * @return Collection
  360.      */
  361.     public function getTestDriveRoutes()
  362.     {
  363.         return $this->test_drive_routes;
  364.     }
  365. }