@@ -3,75 +3,75 @@ |
||
3 | 3 | namespace Nickcheek\Atdconnect\Services; |
4 | 4 | |
5 | 5 | class Vehicle { |
6 | - use \Nickcheek\Atdconnect\Traits\ApiTrait; |
|
6 | + use \Nickcheek\Atdconnect\Traits\ApiTrait; |
|
7 | 7 | |
8 | - private $location; |
|
9 | - private $wsdl; |
|
8 | + private $location; |
|
9 | + private $wsdl; |
|
10 | 10 | |
11 | - public $vin; |
|
11 | + public $vin; |
|
12 | 12 | |
13 | 13 | |
14 | - public function __construct() |
|
15 | - { |
|
16 | - $config = include(realpath(dirname(__FILE__) . '/../config/config.php')); |
|
17 | - $this->location = $config->location; |
|
18 | - $this->wsdl = 'http://testws.atdconnect.com/ws/3_4/fitments.wsdl'; |
|
14 | + public function __construct() |
|
15 | + { |
|
16 | + $config = include(realpath(dirname(__FILE__) . '/../config/config.php')); |
|
17 | + $this->location = $config->location; |
|
18 | + $this->wsdl = 'http://testws.atdconnect.com/ws/3_4/fitments.wsdl'; |
|
19 | 19 | |
20 | - } |
|
20 | + } |
|
21 | 21 | |
22 | - //************************************************ |
|
23 | - // Vehicle Service |
|
24 | - //************************************************ |
|
25 | - public function getVehicleYear() |
|
26 | - { |
|
22 | + //************************************************ |
|
23 | + // Vehicle Service |
|
24 | + //************************************************ |
|
25 | + public function getVehicleYear() |
|
26 | + { |
|
27 | 27 | return $this->apiCall('getVehicleYear','',$this->wsdl); |
28 | - } |
|
28 | + } |
|
29 | 29 | |
30 | - public function getVehicleMake($year) |
|
31 | - { |
|
32 | - return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl); |
|
33 | - } |
|
30 | + public function getVehicleMake($year) |
|
31 | + { |
|
32 | + return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl); |
|
33 | + } |
|
34 | 34 | |
35 | - public function getVehicleModel($year,$make) |
|
36 | - { |
|
35 | + public function getVehicleModel($year,$make) |
|
36 | + { |
|
37 | 37 | return $this->apiCall('getVehicleModel',['vehicle' => ['year'=>$year,'make'=>$make]],$this->wsdl); |
38 | - } |
|
38 | + } |
|
39 | 39 | |
40 | 40 | |
41 | - public function getVehicleTrim($year,$make,$model) |
|
42 | - { |
|
41 | + public function getVehicleTrim($year,$make,$model) |
|
42 | + { |
|
43 | 43 | return $this->apiCall('getVehicleTrim',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model]],$this->wsdl); |
44 | - } |
|
44 | + } |
|
45 | 45 | |
46 | - public function getVehicleTrimOption($year,$make,$model,$trim) |
|
47 | - { |
|
48 | - return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl); |
|
49 | - } |
|
46 | + public function getVehicleTrimOption($year,$make,$model,$trim) |
|
47 | + { |
|
48 | + return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl); |
|
49 | + } |
|
50 | 50 | |
51 | - public function getVehiclePlusSizes($year,$make,$model,$trim) |
|
52 | - { |
|
53 | - return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl); |
|
54 | - } |
|
51 | + public function getVehiclePlusSizes($year,$make,$model,$trim) |
|
52 | + { |
|
53 | + return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl); |
|
54 | + } |
|
55 | 55 | |
56 | - public function getProductByFitment($year,$make,$model,$trim,$option) |
|
57 | - { |
|
58 | - return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl); |
|
59 | - } |
|
56 | + public function getProductByFitment($year,$make,$model,$trim,$option) |
|
57 | + { |
|
58 | + return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl); |
|
59 | + } |
|
60 | 60 | |
61 | - public function getVehicleByVehicleId($vID) |
|
62 | - { |
|
63 | - return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl); |
|
64 | - } |
|
61 | + public function getVehicleByVehicleId($vID) |
|
62 | + { |
|
63 | + return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl); |
|
64 | + } |
|
65 | 65 | |
66 | - public function getVehicleByLicensePlate($num,$state) |
|
67 | - { |
|
68 | - return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl); |
|
69 | - } |
|
66 | + public function getVehicleByLicensePlate($num,$state) |
|
67 | + { |
|
68 | + return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl); |
|
69 | + } |
|
70 | 70 | |
71 | - public function getVehicleByVIN($vin) |
|
72 | - { |
|
73 | - return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl); |
|
74 | - } |
|
71 | + public function getVehicleByVIN($vin) |
|
72 | + { |
|
73 | + return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl); |
|
74 | + } |
|
75 | 75 | |
76 | 76 | |
77 | 77 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | |
14 | 14 | public function __construct() |
15 | 15 | { |
16 | - $config = include(realpath(dirname(__FILE__) . '/../config/config.php')); |
|
16 | + $config = include(realpath(dirname(__FILE__).'/../config/config.php')); |
|
17 | 17 | $this->location = $config->location; |
18 | 18 | $this->wsdl = 'http://testws.atdconnect.com/ws/3_4/fitments.wsdl'; |
19 | 19 | |
@@ -24,53 +24,53 @@ discard block |
||
24 | 24 | //************************************************ |
25 | 25 | public function getVehicleYear() |
26 | 26 | { |
27 | - return $this->apiCall('getVehicleYear','',$this->wsdl); |
|
27 | + return $this->apiCall('getVehicleYear', '', $this->wsdl); |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | public function getVehicleMake($year) |
31 | 31 | { |
32 | - return $this->apiCall('getVehicleMake',['vehicle' => ['year'=>$year]],$this->wsdl); |
|
32 | + return $this->apiCall('getVehicleMake', ['vehicle' => ['year'=>$year]], $this->wsdl); |
|
33 | 33 | } |
34 | 34 | |
35 | - public function getVehicleModel($year,$make) |
|
35 | + public function getVehicleModel($year, $make) |
|
36 | 36 | { |
37 | - return $this->apiCall('getVehicleModel',['vehicle' => ['year'=>$year,'make'=>$make]],$this->wsdl); |
|
37 | + return $this->apiCall('getVehicleModel', ['vehicle' => ['year'=>$year, 'make'=>$make]], $this->wsdl); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | |
41 | - public function getVehicleTrim($year,$make,$model) |
|
41 | + public function getVehicleTrim($year, $make, $model) |
|
42 | 42 | { |
43 | - return $this->apiCall('getVehicleTrim',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model]],$this->wsdl); |
|
43 | + return $this->apiCall('getVehicleTrim', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model]], $this->wsdl); |
|
44 | 44 | } |
45 | 45 | |
46 | - public function getVehicleTrimOption($year,$make,$model,$trim) |
|
46 | + public function getVehicleTrimOption($year, $make, $model, $trim) |
|
47 | 47 | { |
48 | - return $this->apiCall('getVehicleTrimOption',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl); |
|
48 | + return $this->apiCall('getVehicleTrimOption', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim]], $this->wsdl); |
|
49 | 49 | } |
50 | 50 | |
51 | - public function getVehiclePlusSizes($year,$make,$model,$trim) |
|
51 | + public function getVehiclePlusSizes($year, $make, $model, $trim) |
|
52 | 52 | { |
53 | - return $this->apiCall('getVehiclePlusSizes',['vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim]],$this->wsdl); |
|
53 | + return $this->apiCall('getVehiclePlusSizes', ['vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim]], $this->wsdl); |
|
54 | 54 | } |
55 | 55 | |
56 | - public function getProductByFitment($year,$make,$model,$trim,$option) |
|
56 | + public function getProductByFitment($year, $make, $model, $trim, $option) |
|
57 | 57 | { |
58 | - return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['year'=>$year,'make'=>$make,'model'=>$model,'trim'=>$trim,'trimOption'=>$option]],$this->wsdl); |
|
58 | + return $this->apiCall('getProductByFitment', ['locationNumber'=>$this->location, 'vehicle' => ['year'=>$year, 'make'=>$make, 'model'=>$model, 'trim'=>$trim, 'trimOption'=>$option]], $this->wsdl); |
|
59 | 59 | } |
60 | 60 | |
61 | 61 | public function getVehicleByVehicleId($vID) |
62 | 62 | { |
63 | - return $this->apiCall('getProductByFitment',['locationNumber'=>$this->location,'vehicle' => ['vehicleId'=>$vID]],$this->wsdl); |
|
63 | + return $this->apiCall('getProductByFitment', ['locationNumber'=>$this->location, 'vehicle' => ['vehicleId'=>$vID]], $this->wsdl); |
|
64 | 64 | } |
65 | 65 | |
66 | - public function getVehicleByLicensePlate($num,$state) |
|
66 | + public function getVehicleByLicensePlate($num, $state) |
|
67 | 67 | { |
68 | - return $this->apiCall('getVehicleByLicensePlate',['licensePlateNumber'=>$num,'licensePlateState' => $state],$this->wsdl); |
|
68 | + return $this->apiCall('getVehicleByLicensePlate', ['licensePlateNumber'=>$num, 'licensePlateState' => $state], $this->wsdl); |
|
69 | 69 | } |
70 | 70 | |
71 | 71 | public function getVehicleByVIN($vin) |
72 | 72 | { |
73 | - return $this->apiCall('getVehicleByVIN',['VIN'=>$vin],$this->wsdl); |
|
73 | + return $this->apiCall('getVehicleByVIN', ['VIN'=>$vin], $this->wsdl); |
|
74 | 74 | } |
75 | 75 | |
76 | 76 |