@@ -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 |
@@ -32,7 +32,9 @@ |
||
32 | 32 | $orderParams = new self(); |
33 | 33 | |
34 | 34 | foreach ($params as $key => $value) { |
35 | - if (is_null(Common::getValue($params, $key))) continue; |
|
35 | + if (is_null(Common::getValue($params, $key))) { |
|
36 | + continue; |
|
37 | + } |
|
36 | 38 | if (property_exists($orderParams, $key)) { |
37 | 39 | $orderParams->$key = $value; |
38 | 40 | } |
@@ -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 |
@@ -42,7 +42,9 @@ |
||
42 | 42 | $vehParams = new self(); |
43 | 43 | |
44 | 44 | foreach ($params as $key => $value) { |
45 | - if (is_null(Common::getValue($params, $key))) continue; |
|
45 | + if (is_null(Common::getValue($params, $key))) { |
|
46 | + continue; |
|
47 | + } |
|
46 | 48 | if (property_exists($vehParams, $key)) { |
47 | 49 | $vehParams->$key = $value; |
48 | 50 | } |
@@ -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 |
@@ -22,7 +22,9 @@ |
||
22 | 22 | $vehicleTrack = new self(); |
23 | 23 | |
24 | 24 | foreach ($params as $key => $value) { |
25 | - if (is_null(Common::getValue($params, $key))) continue; |
|
25 | + if (is_null(Common::getValue($params, $key))) { |
|
26 | + continue; |
|
27 | + } |
|
26 | 28 | if (property_exists($vehicleTrack, $key)) { |
27 | 29 | $vehicleTrack->$key = $value; |
28 | 30 | } |
@@ -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 | } |
@@ -22,7 +22,9 @@ |
||
22 | 22 | $locParams = new self(); |
23 | 23 | |
24 | 24 | foreach ($params as $key => $value) { |
25 | - if (is_null(Common::getValue($params, $key))) continue; |
|
25 | + if (is_null(Common::getValue($params, $key))) { |
|
26 | + continue; |
|
27 | + } |
|
26 | 28 | if (property_exists($locParams, $key)) { |
27 | 29 | $locParams->$key = $value; |
28 | 30 | } |
@@ -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 |
@@ -12,22 +12,22 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleResponse extends Common |
14 | 14 | { |
15 | - /** Vehicle data |
|
16 | - * @var DataVehicle $data |
|
17 | - */ |
|
18 | - public $data = []; |
|
15 | + /** Vehicle data |
|
16 | + * @var DataVehicle $data |
|
17 | + */ |
|
18 | + public $data = []; |
|
19 | 19 | |
20 | - public static function fromArray(array $params) |
|
21 | - { |
|
22 | - $vehResp = new self(); |
|
20 | + public static function fromArray(array $params) |
|
21 | + { |
|
22 | + $vehResp = new self(); |
|
23 | 23 | |
24 | - foreach ($params as $key => $value) { |
|
25 | - if (is_null(Common::getValue($params, $key))) continue; |
|
26 | - if (property_exists($vehResp, $key)) { |
|
27 | - $vehResp->$key = $value; |
|
28 | - } |
|
29 | - } |
|
24 | + foreach ($params as $key => $value) { |
|
25 | + if (is_null(Common::getValue($params, $key))) continue; |
|
26 | + if (property_exists($vehResp, $key)) { |
|
27 | + $vehResp->$key = $value; |
|
28 | + } |
|
29 | + } |
|
30 | 30 | |
31 | - return $vehResp; |
|
32 | - } |
|
31 | + return $vehResp; |
|
32 | + } |
|
33 | 33 | } |
34 | 34 | \ No newline at end of file |
@@ -22,7 +22,9 @@ |
||
22 | 22 | $vehResp = new self(); |
23 | 23 | |
24 | 24 | foreach ($params as $key => $value) { |
25 | - if (is_null(Common::getValue($params, $key))) continue; |
|
25 | + if (is_null(Common::getValue($params, $key))) { |
|
26 | + continue; |
|
27 | + } |
|
26 | 28 | if (property_exists($vehResp, $key)) { |
27 | 29 | $vehResp->$key = $value; |
28 | 30 | } |
@@ -12,77 +12,77 @@ |
||
12 | 12 | */ |
13 | 13 | class VehicleProfilesResponse extends Common |
14 | 14 | { |
15 | - /** Current page of the paginated vehicle profiles list. |
|
16 | - * @var integer $current_page |
|
17 | - */ |
|
18 | - public $current_page; |
|
19 | - |
|
20 | - /** An array of the vehicle profiles |
|
21 | - * @var VehileProfile[] $data |
|
22 | - */ |
|
23 | - public $data = []; |
|
24 | - |
|
25 | - /** URL to the first page of the paginated vehicle profiles list. |
|
26 | - * @var string $first_page_url |
|
27 | - */ |
|
28 | - public $first_page_url; |
|
29 | - |
|
30 | - /** From which vehicle profile is starting the page |
|
31 | - * @var integer $from |
|
32 | - */ |
|
33 | - public $from; |
|
34 | - |
|
35 | - /** Last page |
|
36 | - * @var integer $last_page |
|
37 | - */ |
|
38 | - public $last_page; |
|
39 | - |
|
40 | - /** URL to the last page of the paginated vehicle profiles list. |
|
41 | - * @var string $last_page_url |
|
42 | - */ |
|
43 | - public $last_page_url; |
|
44 | - |
|
45 | - /** URL to the next page of the paginated vehicle profiles list. |
|
46 | - * @var string $next_page_url |
|
47 | - */ |
|
48 | - public $next_page_url; |
|
49 | - |
|
50 | - /** Path to the API endpoint |
|
51 | - * @var string $path |
|
52 | - */ |
|
53 | - public $path; |
|
54 | - |
|
55 | - /** Vehicles number per page |
|
56 | - * @var integer $per_page |
|
57 | - */ |
|
58 | - public $per_page; |
|
59 | - |
|
60 | - /** URL to the previous page |
|
61 | - * @var string $prev_page_url |
|
62 | - */ |
|
63 | - public $prev_page_url; |
|
64 | - |
|
65 | - /** To which vehicle profile is ending the page |
|
66 | - * @var integer $to |
|
67 | - */ |
|
68 | - public $to; |
|
69 | - |
|
70 | - /** Total number of the vehicles. |
|
71 | - * @var integer $total |
|
72 | - */ |
|
73 | - public $total; |
|
74 | - |
|
75 | - public static function fromArray(array $params) |
|
76 | - { |
|
77 | - $profResp = new self(); |
|
78 | - |
|
79 | - foreach ($params as $key => $value) { |
|
80 | - if (is_null(Common::getValue($params, $key))) continue; |
|
81 | - if (property_exists($profResp, $key)) { |
|
82 | - $profResp->$key = $value; |
|
83 | - } |
|
84 | - } |
|
85 | - |
|
86 | - return $profResp; |
|
87 | - } |
|
15 | + /** Current page of the paginated vehicle profiles list. |
|
16 | + * @var integer $current_page |
|
17 | + */ |
|
18 | + public $current_page; |
|
19 | + |
|
20 | + /** An array of the vehicle profiles |
|
21 | + * @var VehileProfile[] $data |
|
22 | + */ |
|
23 | + public $data = []; |
|
24 | + |
|
25 | + /** URL to the first page of the paginated vehicle profiles list. |
|
26 | + * @var string $first_page_url |
|
27 | + */ |
|
28 | + public $first_page_url; |
|
29 | + |
|
30 | + /** From which vehicle profile is starting the page |
|
31 | + * @var integer $from |
|
32 | + */ |
|
33 | + public $from; |
|
34 | + |
|
35 | + /** Last page |
|
36 | + * @var integer $last_page |
|
37 | + */ |
|
38 | + public $last_page; |
|
39 | + |
|
40 | + /** URL to the last page of the paginated vehicle profiles list. |
|
41 | + * @var string $last_page_url |
|
42 | + */ |
|
43 | + public $last_page_url; |
|
44 | + |
|
45 | + /** URL to the next page of the paginated vehicle profiles list. |
|
46 | + * @var string $next_page_url |
|
47 | + */ |
|
48 | + public $next_page_url; |
|
49 | + |
|
50 | + /** Path to the API endpoint |
|
51 | + * @var string $path |
|
52 | + */ |
|
53 | + public $path; |
|
54 | + |
|
55 | + /** Vehicles number per page |
|
56 | + * @var integer $per_page |
|
57 | + */ |
|
58 | + public $per_page; |
|
59 | + |
|
60 | + /** URL to the previous page |
|
61 | + * @var string $prev_page_url |
|
62 | + */ |
|
63 | + public $prev_page_url; |
|
64 | + |
|
65 | + /** To which vehicle profile is ending the page |
|
66 | + * @var integer $to |
|
67 | + */ |
|
68 | + public $to; |
|
69 | + |
|
70 | + /** Total number of the vehicles. |
|
71 | + * @var integer $total |
|
72 | + */ |
|
73 | + public $total; |
|
74 | + |
|
75 | + public static function fromArray(array $params) |
|
76 | + { |
|
77 | + $profResp = new self(); |
|
78 | + |
|
79 | + foreach ($params as $key => $value) { |
|
80 | + if (is_null(Common::getValue($params, $key))) continue; |
|
81 | + if (property_exists($profResp, $key)) { |
|
82 | + $profResp->$key = $value; |
|
83 | + } |
|
84 | + } |
|
85 | + |
|
86 | + return $profResp; |
|
87 | + } |
|
88 | 88 | } |
89 | 89 | \ No newline at end of file |
@@ -77,7 +77,9 @@ |
||
77 | 77 | $profResp = new self(); |
78 | 78 | |
79 | 79 | foreach ($params as $key => $value) { |
80 | - if (is_null(Common::getValue($params, $key))) continue; |
|
80 | + if (is_null(Common::getValue($params, $key))) { |
|
81 | + continue; |
|
82 | + } |
|
81 | 83 | if (property_exists($profResp, $key)) { |
82 | 84 | $profResp->$key = $value; |
83 | 85 | } |
@@ -6,38 +6,38 @@ |
||
6 | 6 | |
7 | 7 | class VehicleTrackItem extends \Route4Me\Common |
8 | 8 | { |
9 | - /** The vehicle ID |
|
10 | - * @var string $vehicle_id |
|
11 | - */ |
|
12 | - public $vehicle_id; |
|
13 | - |
|
14 | - /** The member ID |
|
15 | - * @var integer $member_id |
|
16 | - */ |
|
17 | - public $member_id; |
|
18 | - |
|
19 | - /** Latitude of a vehicle position. |
|
20 | - * @var float $lat |
|
21 | - */ |
|
22 | - public $lat; |
|
23 | - |
|
24 | - /** Longitude of a vehicle position. |
|
25 | - * @var float $lng |
|
26 | - */ |
|
27 | - public $lng; |
|
28 | - |
|
29 | - /** The geographic altitude |
|
30 | - * @var integer $altitude |
|
31 | - */ |
|
32 | - public $altitude; |
|
33 | - |
|
34 | - /** Vehicle speed |
|
35 | - * @var integer $speed |
|
36 | - */ |
|
37 | - public $speed; |
|
38 | - |
|
39 | - /** When a vehicle activity was detected. |
|
40 | - * @var integer $timestamp |
|
41 | - */ |
|
42 | - public $timestamp; |
|
9 | + /** The vehicle ID |
|
10 | + * @var string $vehicle_id |
|
11 | + */ |
|
12 | + public $vehicle_id; |
|
13 | + |
|
14 | + /** The member ID |
|
15 | + * @var integer $member_id |
|
16 | + */ |
|
17 | + public $member_id; |
|
18 | + |
|
19 | + /** Latitude of a vehicle position. |
|
20 | + * @var float $lat |
|
21 | + */ |
|
22 | + public $lat; |
|
23 | + |
|
24 | + /** Longitude of a vehicle position. |
|
25 | + * @var float $lng |
|
26 | + */ |
|
27 | + public $lng; |
|
28 | + |
|
29 | + /** The geographic altitude |
|
30 | + * @var integer $altitude |
|
31 | + */ |
|
32 | + public $altitude; |
|
33 | + |
|
34 | + /** Vehicle speed |
|
35 | + * @var integer $speed |
|
36 | + */ |
|
37 | + public $speed; |
|
38 | + |
|
39 | + /** When a vehicle activity was detected. |
|
40 | + * @var integer $timestamp |
|
41 | + */ |
|
42 | + public $timestamp; |
|
43 | 43 | } |
44 | 44 | \ No newline at end of file |