@@ -9,34 +9,34 @@ |
||
9 | 9 | */ |
10 | 10 | class Country extends Common |
11 | 11 | { |
12 | - /** |
|
13 | - * Country ID |
|
14 | - * @var type string |
|
15 | - */ |
|
16 | - public $id; |
|
12 | + /** |
|
13 | + * Country ID |
|
14 | + * @var type string |
|
15 | + */ |
|
16 | + public $id; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Country code |
|
20 | - * @var type string |
|
21 | - */ |
|
22 | - public $country_code; |
|
18 | + /** |
|
19 | + * Country code |
|
20 | + * @var type string |
|
21 | + */ |
|
22 | + public $country_code; |
|
23 | 23 | |
24 | - /** |
|
25 | - * Country name |
|
26 | - * @var type string |
|
27 | - */ |
|
28 | - public $country_name; |
|
24 | + /** |
|
25 | + * Country name |
|
26 | + * @var type string |
|
27 | + */ |
|
28 | + public $country_name; |
|
29 | 29 | |
30 | - public static function fromArray(array $params) |
|
31 | - { |
|
32 | - $thisParams = new self(); |
|
30 | + public static function fromArray(array $params) |
|
31 | + { |
|
32 | + $thisParams = new self(); |
|
33 | 33 | |
34 | - foreach ($params as $key => $value) { |
|
35 | - if (property_exists($thisParams, $key)) { |
|
36 | - $thisParams->{$key} = $value; |
|
37 | - } |
|
38 | - } |
|
34 | + foreach ($params as $key => $value) { |
|
35 | + if (property_exists($thisParams, $key)) { |
|
36 | + $thisParams->{$key} = $value; |
|
37 | + } |
|
38 | + } |
|
39 | 39 | |
40 | - return $thisParams; |
|
41 | - } |
|
40 | + return $thisParams; |
|
41 | + } |
|
42 | 42 | } |
@@ -12,18 +12,18 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleSearchParameters extends \Route4Me\Common |
14 | 14 | { |
15 | - /** An array of the vehicle IDs. |
|
16 | - * @var string[] $vehicle_ids |
|
17 | - */ |
|
18 | - public $vehicle_ids = []; |
|
15 | + /** An array of the vehicle IDs. |
|
16 | + * @var string[] $vehicle_ids |
|
17 | + */ |
|
18 | + public $vehicle_ids = []; |
|
19 | 19 | |
20 | - /** Latitude of a vehicle position. |
|
21 | - * @var float $lat |
|
22 | - */ |
|
23 | - public $lat; |
|
20 | + /** Latitude of a vehicle position. |
|
21 | + * @var float $lat |
|
22 | + */ |
|
23 | + public $lat; |
|
24 | 24 | |
25 | - /** Longitude of a vehicle position. |
|
26 | - * @var float $lng |
|
27 | - */ |
|
28 | - public $lng; |
|
25 | + /** Longitude of a vehicle position. |
|
26 | + * @var float $lng |
|
27 | + */ |
|
28 | + public $lng; |
|
29 | 29 | } |
30 | 30 | \ No newline at end of file |
@@ -12,23 +12,23 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleProfileParameters extends Common |
14 | 14 | { |
15 | - /** If true, returned vehicle profile is paginated. |
|
16 | - * @var boolean $with_pagination |
|
17 | - */ |
|
18 | - public $with_pagination; |
|
15 | + /** If true, returned vehicle profile is paginated. |
|
16 | + * @var boolean $with_pagination |
|
17 | + */ |
|
18 | + public $with_pagination; |
|
19 | 19 | |
20 | - /** Current page number in the vehicles collection |
|
21 | - * @var integer $page |
|
22 | - */ |
|
23 | - public $page; |
|
20 | + /** Current page number in the vehicles collection |
|
21 | + * @var integer $page |
|
22 | + */ |
|
23 | + public $page; |
|
24 | 24 | |
25 | - /** Returned vehicles number per page |
|
26 | - * @var integer $perPage |
|
27 | - */ |
|
28 | - public $perPage; |
|
25 | + /** Returned vehicles number per page |
|
26 | + * @var integer $perPage |
|
27 | + */ |
|
28 | + public $perPage; |
|
29 | 29 | |
30 | - /** Vehicle profile ID |
|
31 | - * @var integer $id |
|
32 | - */ |
|
33 | - public $id; |
|
30 | + /** Vehicle profile ID |
|
31 | + * @var integer $id |
|
32 | + */ |
|
33 | + public $id; |
|
34 | 34 | } |
35 | 35 | \ No newline at end of file |
@@ -12,32 +12,32 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleOrderParameters extends Common |
14 | 14 | { |
15 | - /** The vehicle ID |
|
16 | - * @var string $vehicle_id |
|
17 | - */ |
|
18 | - public $vehicle_id; |
|
19 | - |
|
20 | - /** Latitude of a vehicle position. |
|
21 | - * @var float $lat |
|
22 | - */ |
|
23 | - public $lat; |
|
24 | - |
|
25 | - /** Longitude of a vehicle position. |
|
26 | - * @var float $lng |
|
27 | - */ |
|
28 | - public $lng; |
|
29 | - |
|
30 | - public static function fromArray(array $params) |
|
31 | - { |
|
32 | - $orderParams = new self(); |
|
33 | - |
|
34 | - foreach ($params as $key => $value) { |
|
35 | - if (is_null(Common::getValue($params, $key))) continue; |
|
36 | - if (property_exists($orderParams, $key)) { |
|
37 | - $orderParams->$key = $value; |
|
38 | - } |
|
39 | - } |
|
40 | - |
|
41 | - return $orderParams; |
|
42 | - } |
|
15 | + /** The vehicle ID |
|
16 | + * @var string $vehicle_id |
|
17 | + */ |
|
18 | + public $vehicle_id; |
|
19 | + |
|
20 | + /** Latitude of a vehicle position. |
|
21 | + * @var float $lat |
|
22 | + */ |
|
23 | + public $lat; |
|
24 | + |
|
25 | + /** Longitude of a vehicle position. |
|
26 | + * @var float $lng |
|
27 | + */ |
|
28 | + public $lng; |
|
29 | + |
|
30 | + public static function fromArray(array $params) |
|
31 | + { |
|
32 | + $orderParams = new self(); |
|
33 | + |
|
34 | + foreach ($params as $key => $value) { |
|
35 | + if (is_null(Common::getValue($params, $key))) continue; |
|
36 | + if (property_exists($orderParams, $key)) { |
|
37 | + $orderParams->$key = $value; |
|
38 | + } |
|
39 | + } |
|
40 | + |
|
41 | + return $orderParams; |
|
42 | + } |
|
43 | 43 | } |
44 | 44 | \ No newline at end of file |
@@ -7,47 +7,47 @@ |
||
7 | 7 | |
8 | 8 | class VehicleParameters extends Common |
9 | 9 | { |
10 | - /** If true, returned vehicles array will be paginated |
|
11 | - * @var boolean $with_pagination |
|
12 | - */ |
|
13 | - public $with_pagination; |
|
14 | - |
|
15 | - /** Current page number in the vehicles collection |
|
16 | - * @var integer $page |
|
17 | - */ |
|
18 | - public $page; |
|
19 | - |
|
20 | - /** Returned vehicles number per page |
|
21 | - * @var integer $perPage |
|
22 | - */ |
|
23 | - public $perPage; |
|
24 | - |
|
25 | - /** An array of the Vehicle IDs. |
|
26 | - * @var string[] $ids = [] |
|
27 | - */ |
|
28 | - public $ids; |
|
29 | - |
|
30 | - /** Vehicle ID |
|
31 | - * @var string $vehicle_id |
|
32 | - */ |
|
33 | - public $vehicle_id; |
|
34 | - |
|
35 | - /** Vehicle license plate |
|
36 | - * @var string $vehicle_license_plate |
|
37 | - */ |
|
38 | - public $vehicle_license_plate; |
|
39 | - |
|
40 | - public static function fromArray(array $params) |
|
41 | - { |
|
42 | - $vehParams = new self(); |
|
43 | - |
|
44 | - foreach ($params as $key => $value) { |
|
45 | - if (is_null(Common::getValue($params, $key))) continue; |
|
46 | - if (property_exists($vehParams, $key)) { |
|
47 | - $vehParams->$key = $value; |
|
48 | - } |
|
49 | - } |
|
50 | - |
|
51 | - return $vehParams; |
|
52 | - } |
|
10 | + /** If true, returned vehicles array will be paginated |
|
11 | + * @var boolean $with_pagination |
|
12 | + */ |
|
13 | + public $with_pagination; |
|
14 | + |
|
15 | + /** Current page number in the vehicles collection |
|
16 | + * @var integer $page |
|
17 | + */ |
|
18 | + public $page; |
|
19 | + |
|
20 | + /** Returned vehicles number per page |
|
21 | + * @var integer $perPage |
|
22 | + */ |
|
23 | + public $perPage; |
|
24 | + |
|
25 | + /** An array of the Vehicle IDs. |
|
26 | + * @var string[] $ids = [] |
|
27 | + */ |
|
28 | + public $ids; |
|
29 | + |
|
30 | + /** Vehicle ID |
|
31 | + * @var string $vehicle_id |
|
32 | + */ |
|
33 | + public $vehicle_id; |
|
34 | + |
|
35 | + /** Vehicle license plate |
|
36 | + * @var string $vehicle_license_plate |
|
37 | + */ |
|
38 | + public $vehicle_license_plate; |
|
39 | + |
|
40 | + public static function fromArray(array $params) |
|
41 | + { |
|
42 | + $vehParams = new self(); |
|
43 | + |
|
44 | + foreach ($params as $key => $value) { |
|
45 | + if (is_null(Common::getValue($params, $key))) continue; |
|
46 | + if (property_exists($vehParams, $key)) { |
|
47 | + $vehParams->$key = $value; |
|
48 | + } |
|
49 | + } |
|
50 | + |
|
51 | + return $vehParams; |
|
52 | + } |
|
53 | 53 | } |
54 | 54 | \ No newline at end of file |
@@ -12,24 +12,24 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleTrackResponse extends Common |
14 | 14 | { |
15 | - /** An array of the vehicle locations |
|
16 | - * @var VehicleTrackItem[] $data |
|
17 | - */ |
|
18 | - public $data = []; |
|
19 | - |
|
20 | - public static function fromArray(array $params) |
|
21 | - { |
|
22 | - $vehicleTrack = new self(); |
|
23 | - |
|
24 | - foreach ($params as $key => $value) { |
|
25 | - if (is_null(Common::getValue($params, $key))) continue; |
|
26 | - if (property_exists($vehicleTrack, $key)) { |
|
27 | - $vehicleTrack->$key = $value; |
|
28 | - } |
|
29 | - } |
|
30 | - |
|
31 | - return $vehicleTrack; |
|
32 | - } |
|
15 | + /** An array of the vehicle locations |
|
16 | + * @var VehicleTrackItem[] $data |
|
17 | + */ |
|
18 | + public $data = []; |
|
19 | + |
|
20 | + public static function fromArray(array $params) |
|
21 | + { |
|
22 | + $vehicleTrack = new self(); |
|
23 | + |
|
24 | + foreach ($params as $key => $value) { |
|
25 | + if (is_null(Common::getValue($params, $key))) continue; |
|
26 | + if (property_exists($vehicleTrack, $key)) { |
|
27 | + $vehicleTrack->$key = $value; |
|
28 | + } |
|
29 | + } |
|
30 | + |
|
31 | + return $vehicleTrack; |
|
32 | + } |
|
33 | 33 | |
34 | 34 | |
35 | 35 | } |
36 | 36 | \ No newline at end of file |
@@ -12,22 +12,22 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleLocationResponse extends \Route4Me\Common |
14 | 14 | { |
15 | - /** An array of the vehicle locations |
|
16 | - * @var VehicleLocationItem $data |
|
17 | - */ |
|
18 | - public $data = []; |
|
15 | + /** An array of the vehicle locations |
|
16 | + * @var VehicleLocationItem $data |
|
17 | + */ |
|
18 | + public $data = []; |
|
19 | 19 | |
20 | - public static function fromArray(array $params) |
|
21 | - { |
|
22 | - $locParams = new self(); |
|
20 | + public static function fromArray(array $params) |
|
21 | + { |
|
22 | + $locParams = new self(); |
|
23 | 23 | |
24 | - foreach ($params as $key => $value) { |
|
25 | - if (is_null(Common::getValue($params, $key))) continue; |
|
26 | - if (property_exists($locParams, $key)) { |
|
27 | - $locParams->$key = $value; |
|
28 | - } |
|
29 | - } |
|
24 | + foreach ($params as $key => $value) { |
|
25 | + if (is_null(Common::getValue($params, $key))) continue; |
|
26 | + if (property_exists($locParams, $key)) { |
|
27 | + $locParams->$key = $value; |
|
28 | + } |
|
29 | + } |
|
30 | 30 | |
31 | - return $locParams; |
|
32 | - } |
|
31 | + return $locParams; |
|
32 | + } |
|
33 | 33 | } |
@@ -10,73 +10,73 @@ |
||
10 | 10 | */ |
11 | 11 | class VehicleReduced extends \Route4Me\Common |
12 | 12 | { |
13 | - /** The vehicle ID |
|
14 | - * @var string $vehicle_id |
|
15 | - */ |
|
16 | - public $vehicle_id; |
|
13 | + /** The vehicle ID |
|
14 | + * @var string $vehicle_id |
|
15 | + */ |
|
16 | + public $vehicle_id; |
|
17 | 17 | |
18 | - /** Vehicle alias |
|
19 | - * @var string $vehicle_alias |
|
20 | - */ |
|
21 | - public $vehicle_alias; |
|
18 | + /** Vehicle alias |
|
19 | + * @var string $vehicle_alias |
|
20 | + */ |
|
21 | + public $vehicle_alias; |
|
22 | 22 | |
23 | - /** Vehicle VIN |
|
24 | - * @var string $vehicle_vin |
|
25 | - */ |
|
26 | - public $vehicle_vin; |
|
23 | + /** Vehicle VIN |
|
24 | + * @var string $vehicle_vin |
|
25 | + */ |
|
26 | + public $vehicle_vin; |
|
27 | 27 | |
28 | - /** A license plate of the vehicle. |
|
29 | - * @var string $vehicle_license_plate |
|
30 | - */ |
|
31 | - public $vehicle_license_plate; |
|
28 | + /** A license plate of the vehicle. |
|
29 | + * @var string $vehicle_license_plate |
|
30 | + */ |
|
31 | + public $vehicle_license_plate; |
|
32 | 32 | |
33 | - /** Vehicle maker brend. |
|
34 | - * <para>Available values:</para> |
|
35 | - * "american coleman", "bmw", "chevrolet", "ford", "freightliner", "gmc", |
|
36 | - * <para>"hino", "honda", "isuzu", "kenworth", "mack", "mercedes-benz", "mitsubishi", </para> |
|
37 | - * "navistar", "nissan", "peterbilt", "renault", "scania", "sterling", "toyota", |
|
38 | - * <para>"volvo", "western star" </para> |
|
39 | - * @var string $vehicle_make |
|
40 | - */ |
|
41 | - public $vehicle_make; |
|
33 | + /** Vehicle maker brend. |
|
34 | + * <para>Available values:</para> |
|
35 | + * "american coleman", "bmw", "chevrolet", "ford", "freightliner", "gmc", |
|
36 | + * <para>"hino", "honda", "isuzu", "kenworth", "mack", "mercedes-benz", "mitsubishi", </para> |
|
37 | + * "navistar", "nissan", "peterbilt", "renault", "scania", "sterling", "toyota", |
|
38 | + * <para>"volvo", "western star" </para> |
|
39 | + * @var string $vehicle_make |
|
40 | + */ |
|
41 | + public $vehicle_make; |
|
42 | 42 | |
43 | - /** Vehicle model year |
|
44 | - * @var integer $vehicle_model_year |
|
45 | - */ |
|
46 | - public $vehicle_model_year; |
|
43 | + /** Vehicle model year |
|
44 | + * @var integer $vehicle_model_year |
|
45 | + */ |
|
46 | + public $vehicle_model_year; |
|
47 | 47 | |
48 | - /** Vehicle model |
|
49 | - * @var string $vehicle_model |
|
50 | - */ |
|
51 | - public $vehicle_model; |
|
48 | + /** Vehicle model |
|
49 | + * @var string $vehicle_model |
|
50 | + */ |
|
51 | + public $vehicle_model; |
|
52 | 52 | |
53 | - /** The year, vehicle was acquired |
|
54 | - * @var integer $vehicle_year_acquired |
|
55 | - */ |
|
56 | - public $vehicle_year_acquired; |
|
53 | + /** The year, vehicle was acquired |
|
54 | + * @var integer $vehicle_year_acquired |
|
55 | + */ |
|
56 | + public $vehicle_year_acquired; |
|
57 | 57 | |
58 | - /** A cost of the new vehicle |
|
59 | - * @var float $vehicle_cost_new |
|
60 | - */ |
|
61 | - public $vehicle_cost_new; |
|
58 | + /** A cost of the new vehicle |
|
59 | + * @var float $vehicle_cost_new |
|
60 | + */ |
|
61 | + public $vehicle_cost_new; |
|
62 | 62 | |
63 | - /** If true, the vehicle was purchased new. |
|
64 | - * @var boolean $purchased_new |
|
65 | - */ |
|
66 | - public $purchased_new; |
|
63 | + /** If true, the vehicle was purchased new. |
|
64 | + * @var boolean $purchased_new |
|
65 | + */ |
|
66 | + public $purchased_new; |
|
67 | 67 | |
68 | - /** Start date of the license |
|
69 | - * @var string $license_start_date |
|
70 | - */ |
|
71 | - public $license_start_date; |
|
68 | + /** Start date of the license |
|
69 | + * @var string $license_start_date |
|
70 | + */ |
|
71 | + public $license_start_date; |
|
72 | 72 | |
73 | - /** End date of the license |
|
74 | - * @var string $license_end_date |
|
75 | - */ |
|
76 | - public $license_end_date; |
|
73 | + /** End date of the license |
|
74 | + * @var string $license_end_date |
|
75 | + */ |
|
76 | + public $license_end_date; |
|
77 | 77 | |
78 | - /** If equal to '1', the vehicle is operational. |
|
79 | - * @var boolean $is_operational |
|
80 | - */ |
|
81 | - public $is_operational; |
|
78 | + /** If equal to '1', the vehicle is operational. |
|
79 | + * @var boolean $is_operational |
|
80 | + */ |
|
81 | + public $is_operational; |
|
82 | 82 | } |
83 | 83 | \ No newline at end of file |
@@ -10,24 +10,24 @@ |
||
10 | 10 | */ |
11 | 11 | class VehicleLocationItem extends \Route4Me\Common |
12 | 12 | { |
13 | - /** The vehicle ID |
|
14 | - * @var string $vehicle_id |
|
15 | - */ |
|
16 | - public $vehicle_id; |
|
13 | + /** The vehicle ID |
|
14 | + * @var string $vehicle_id |
|
15 | + */ |
|
16 | + public $vehicle_id; |
|
17 | 17 | |
18 | - /** When a vehicle activity was detected. |
|
19 | - * @var integer $activity_timestamp |
|
20 | - */ |
|
21 | - public $activity_timestamp; |
|
18 | + /** When a vehicle activity was detected. |
|
19 | + * @var integer $activity_timestamp |
|
20 | + */ |
|
21 | + public $activity_timestamp; |
|
22 | 22 | |
23 | - /** Latitude of a vehicle position. |
|
24 | - * @var float $lat |
|
25 | - */ |
|
26 | - public $lat; |
|
23 | + /** Latitude of a vehicle position. |
|
24 | + * @var float $lat |
|
25 | + */ |
|
26 | + public $lat; |
|
27 | 27 | |
28 | - /** Longitude of a vehicle position |
|
29 | - * @var float $lng |
|
30 | - */ |
|
31 | - public $lng; |
|
28 | + /** Longitude of a vehicle position |
|
29 | + * @var float $lng |
|
30 | + */ |
|
31 | + public $lng; |
|
32 | 32 | |
33 | 33 | } |
34 | 34 | \ No newline at end of file |