@@ -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 |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | //$vehicleProfileID = isset($params['vehicle_profile_id']) ? $params['vehicle_profile_id'] : null; |
| 194 | 194 | |
| 195 | 195 | $response = Route4Me::makeRequst([ |
| 196 | - 'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId, |
|
| 196 | + 'url' => Endpoint::VehicleProfiles.'/'.$vehicleProfileId, |
|
| 197 | 197 | 'method' => 'DELETE', |
| 198 | 198 | 'HTTPHEADER' => 'Content-Type: application/json; Accept: application/json', |
| 199 | 199 | ]); |
@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | public function getVehicleProfileById($vehicleProfileId) |
| 243 | 243 | { |
| 244 | 244 | $response = Route4Me::makeRequst([ |
| 245 | - 'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId, |
|
| 245 | + 'url' => Endpoint::VehicleProfiles.'/'.$vehicleProfileId, |
|
| 246 | 246 | 'method' => 'GET', |
| 247 | 247 | ]); |
| 248 | 248 | |
@@ -16,258 +16,258 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | class VehicleProfile extends Common |
| 18 | 18 | { |
| 19 | - /** Vehicle profile ID |
|
| 20 | - * @var integer $vehicle_profile_id |
|
| 21 | - */ |
|
| 22 | - public $vehicle_profile_id; |
|
| 23 | - |
|
| 24 | - /** Root member ID |
|
| 25 | - * @var integer $root_member_id |
|
| 26 | - */ |
|
| 27 | - public $root_member_id; |
|
| 28 | - |
|
| 29 | - /** Vehicle profile name |
|
| 30 | - * @var string $name |
|
| 31 | - */ |
|
| 32 | - public $name; |
|
| 33 | - |
|
| 34 | - /** Vehicle height |
|
| 35 | - * @var float $height |
|
| 36 | - */ |
|
| 37 | - public $height; |
|
| 38 | - |
|
| 39 | - /** Vehicle width |
|
| 40 | - * @var float $width |
|
| 41 | - */ |
|
| 42 | - public $width; |
|
| 43 | - |
|
| 44 | - /** Vehicle length |
|
| 45 | - * @var float $length |
|
| 46 | - */ |
|
| 47 | - public $length; |
|
| 48 | - |
|
| 49 | - /** Vehicle weight |
|
| 50 | - * @var float $weight |
|
| 51 | - */ |
|
| 52 | - public $weight; |
|
| 53 | - |
|
| 54 | - /** Maximum weight per axle. |
|
| 55 | - * @var float $max_weight_per_axle |
|
| 56 | - */ |
|
| 57 | - public $max_weight_per_axle; |
|
| 58 | - |
|
| 59 | - /** When the profile deleted |
|
| 60 | - * @var string $deleted_at |
|
| 61 | - */ |
|
| 62 | - public $deleted_at; |
|
| 63 | - |
|
| 64 | - /** When the profile created |
|
| 65 | - * @var string $created_at |
|
| 66 | - */ |
|
| 67 | - public $created_at; |
|
| 68 | - |
|
| 69 | - /** When the profile updated |
|
| 70 | - * @var string $updated_at |
|
| 71 | - */ |
|
| 72 | - public $updated_at; |
|
| 73 | - |
|
| 74 | - /** A type of the fuel |
|
| 75 | - * enum: ['unleaded 87','unleaded 89','unleaded 91', |
|
| 76 | - * 'unleaded 93','diesel','electric','hybrid'] |
|
| 77 | - * @var string $fuel_type |
|
| 78 | - */ |
|
| 79 | - public $fuel_type; |
|
| 80 | - |
|
| 81 | - /** Fuel consumption city |
|
| 82 | - * @var float $fuel_consumption_city |
|
| 83 | - */ |
|
| 84 | - public $fuel_consumption_city; |
|
| 85 | - |
|
| 86 | - /** Fuel consumption in the highway area |
|
| 87 | - * @var float $fuel_consumption_highway |
|
| 88 | - */ |
|
| 89 | - public $fuel_consumption_highway; |
|
| 90 | - |
|
| 91 | - /** Type of a hazardous material. |
|
| 92 | - * enum: ['general', 'explosives', 'flammable', 'inhalants', 'caustic', 'radioactive'] |
|
| 93 | - * @var string $hazmat_type |
|
| 94 | - */ |
|
| 95 | - public $hazmat_type; |
|
| 96 | - |
|
| 97 | - /** If true, the profile is predefined. |
|
| 98 | - * @var boolean $is_predefined |
|
| 99 | - */ |
|
| 100 | - public $is_predefined; |
|
| 101 | - |
|
| 102 | - /** If true, the profile is default. |
|
| 103 | - * @var boolean $is_default |
|
| 104 | - */ |
|
| 105 | - public $is_default; |
|
| 106 | - |
|
| 107 | - /** Height units (e.g. 'ft', 'm') |
|
| 108 | - * @var string $height_units |
|
| 109 | - */ |
|
| 110 | - public $height_units; |
|
| 111 | - |
|
| 112 | - /** Width units (e.g. 'ft', 'm') |
|
| 113 | - * @var string $width_units |
|
| 114 | - */ |
|
| 115 | - public $width_units; |
|
| 116 | - |
|
| 117 | - /** Length units (e.g. 'ft', 'm') |
|
| 118 | - * @var string $length_units |
|
| 119 | - */ |
|
| 120 | - public $length_units; |
|
| 121 | - |
|
| 122 | - /** Weight units (e.g. 'lb', 'kg') |
|
| 123 | - * @var string $weight_units |
|
| 124 | - */ |
|
| 125 | - public $weight_units; |
|
| 126 | - |
|
| 127 | - /** Maximum weight per axle units (e.g. 'lb', 'kg') |
|
| 128 | - * @var string $max_weight_per_axle_units |
|
| 129 | - */ |
|
| 130 | - public $max_weight_per_axle_units; |
|
| 131 | - |
|
| 132 | - /** Fuel consumption units in the city area (e.g. mpg) |
|
| 133 | - * @var string $fuel_consumption_city_unit |
|
| 134 | - */ |
|
| 135 | - public $fuel_consumption_city_unit; |
|
| 136 | - |
|
| 137 | - /** Fuel consumption units in the highway area (e.g. mpg) |
|
| 138 | - * @var string $fuel_consumption_highway_unit |
|
| 139 | - */ |
|
| 140 | - public $fuel_consumption_highway_unit; |
|
| 141 | - |
|
| 142 | - /** Height UF value (e.g. "7'") |
|
| 143 | - * @var string $height_uf_value |
|
| 144 | - */ |
|
| 145 | - public $height_uf_value; |
|
| 146 | - |
|
| 147 | - /** Width UF value (e.g. "8'") |
|
| 148 | - * @var string $width_uf_value |
|
| 149 | - */ |
|
| 150 | - public $width_uf_value; |
|
| 151 | - |
|
| 152 | - /** Length UF value (e.g. "20'") |
|
| 153 | - * @var string $length_uf_value |
|
| 154 | - */ |
|
| 155 | - public $length_uf_value; |
|
| 156 | - |
|
| 157 | - /** Weight UF value (e.g. "8,500lb") |
|
| 158 | - * @var string $weight_uf_value |
|
| 159 | - */ |
|
| 160 | - public $weight_uf_value; |
|
| 161 | - |
|
| 162 | - /** Maximum weight per axle (UF value, e.g. "8,500lb") |
|
| 163 | - * @var string $max_weight_per_axle_uf_value |
|
| 164 | - */ |
|
| 165 | - public $max_weight_per_axle_uf_value; |
|
| 166 | - |
|
| 167 | - /** Fuel consumption city (UF value, e.g. "20.01 mi/l") |
|
| 168 | - * @var string $fuel_consumption_city_uf_value |
|
| 169 | - */ |
|
| 170 | - public $fuel_consumption_city_uf_value; |
|
| 171 | - |
|
| 172 | - /** Fuel consumption highway (UF value, e.g. "2,000.01 mpg") |
|
| 173 | - * @var string $fuel_consumption_highway_uf_value |
|
| 174 | - */ |
|
| 175 | - public $fuel_consumption_highway_uf_value; |
|
| 176 | - |
|
| 177 | - public static function fromArray(array $params) |
|
| 178 | - { |
|
| 179 | - $vehicleProfile = new self(); |
|
| 180 | - |
|
| 181 | - foreach ($params as $key => $value) { |
|
| 182 | - if (is_null(Common::getValue($params, $key))) { |
|
| 183 | - continue; |
|
| 184 | - } |
|
| 185 | - if (property_exists($vehicleProfile, $key)) { |
|
| 186 | - $vehicleProfile->$key = $value; |
|
| 187 | - } |
|
| 188 | - } |
|
| 189 | - |
|
| 190 | - return $vehicleProfile; |
|
| 191 | - } |
|
| 192 | - |
|
| 193 | - public function __construct() |
|
| 194 | - { |
|
| 195 | - Route4Me::setBaseUrl(""); |
|
| 196 | - } |
|
| 197 | - |
|
| 198 | - public function removeVehicleProfile($vehicleProfileId) |
|
| 199 | - { |
|
| 200 | - //$vehicleProfileID = isset($params['vehicle_profile_id']) ? $params['vehicle_profile_id'] : null; |
|
| 201 | - |
|
| 202 | - $response = Route4Me::makeRequst([ |
|
| 203 | - 'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId, |
|
| 204 | - 'method' => 'DELETE', |
|
| 205 | - 'HTTPHEADER' => 'Content-Type: application/json; Accept: application/json', |
|
| 206 | - ]); |
|
| 207 | - |
|
| 208 | - return $response; |
|
| 209 | - } |
|
| 210 | - |
|
| 211 | - /** |
|
| 212 | - * @param $profileParams - an array from the VehicleParameters object. |
|
| 213 | - * @return The data including list of the vehicle profiles. |
|
| 214 | - * @throws \Route4Me\Exception\ApiError |
|
| 215 | - */ |
|
| 216 | - public function getVehicleProfiles($profileParams) |
|
| 217 | - { |
|
| 218 | - $allQueryFields = ['with_pagination', 'page', 'perPage']; |
|
| 219 | - |
|
| 220 | - $response = Route4Me::makeRequst([ |
|
| 221 | - 'url' => Endpoint::VehicleProfiles, |
|
| 222 | - 'method' => 'GET', |
|
| 223 | - 'query' => Route4Me::generateRequestParameters($allQueryFields, $profileParams), |
|
| 224 | - ]); |
|
| 225 | - |
|
| 226 | - return $response; |
|
| 227 | - } |
|
| 228 | - |
|
| 229 | - /** |
|
| 230 | - * @param $profileParams - Vehicle profile body parameters |
|
| 231 | - * @return Created vehicle profile |
|
| 232 | - * @throws \Route4Me\Exception\ApiError |
|
| 233 | - */ |
|
| 234 | - public function createVehicleProfile($profileParams) |
|
| 235 | - { |
|
| 236 | - $excludeFields = []; |
|
| 237 | - $allBodyFields = Route4Me::getObjectProperties(new VehicleProfile(), $excludeFields); |
|
| 238 | - |
|
| 239 | - $response = Route4Me::makeRequst([ |
|
| 240 | - 'url' => Endpoint::VehicleProfiles, |
|
| 241 | - 'method' => 'POST', |
|
| 242 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $profileParams), |
|
| 243 | - 'HTTPHEADER' => 'Content-Type: application/json' |
|
| 244 | - ]); |
|
| 245 | - |
|
| 246 | - return $response; |
|
| 247 | - } |
|
| 248 | - |
|
| 249 | - public function getVehicleProfileById($vehicleProfileId) |
|
| 250 | - { |
|
| 251 | - $response = Route4Me::makeRequst([ |
|
| 252 | - 'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId, |
|
| 253 | - 'method' => 'GET', |
|
| 254 | - ]); |
|
| 255 | - |
|
| 256 | - return $response; |
|
| 257 | - } |
|
| 258 | - |
|
| 259 | - public function updateVehicleProfile($vehicleProfile) |
|
| 260 | - { |
|
| 261 | - $excludeFields = ['vehicle_profile_id', 'deleted_at', 'created_at', 'updated_at']; |
|
| 262 | - $allBodyFields = Route4Me::getObjectProperties(new self(), $excludeFields); |
|
| 263 | - |
|
| 264 | - $response = Route4Me::makeRequst([ |
|
| 265 | - 'url' => Endpoint::VehicleProfiles.'/'.$vehicleProfile['vehicle_profile_id'], |
|
| 266 | - 'method' => 'PATCH', |
|
| 267 | - 'body' => Route4Me::generateRequestParameters($allBodyFields, $vehicleProfile), |
|
| 268 | - 'HTTPHEADER' => 'Content-Type: application/json' |
|
| 269 | - ]); |
|
| 270 | - |
|
| 271 | - return $response; |
|
| 272 | - } |
|
| 19 | + /** Vehicle profile ID |
|
| 20 | + * @var integer $vehicle_profile_id |
|
| 21 | + */ |
|
| 22 | + public $vehicle_profile_id; |
|
| 23 | + |
|
| 24 | + /** Root member ID |
|
| 25 | + * @var integer $root_member_id |
|
| 26 | + */ |
|
| 27 | + public $root_member_id; |
|
| 28 | + |
|
| 29 | + /** Vehicle profile name |
|
| 30 | + * @var string $name |
|
| 31 | + */ |
|
| 32 | + public $name; |
|
| 33 | + |
|
| 34 | + /** Vehicle height |
|
| 35 | + * @var float $height |
|
| 36 | + */ |
|
| 37 | + public $height; |
|
| 38 | + |
|
| 39 | + /** Vehicle width |
|
| 40 | + * @var float $width |
|
| 41 | + */ |
|
| 42 | + public $width; |
|
| 43 | + |
|
| 44 | + /** Vehicle length |
|
| 45 | + * @var float $length |
|
| 46 | + */ |
|
| 47 | + public $length; |
|
| 48 | + |
|
| 49 | + /** Vehicle weight |
|
| 50 | + * @var float $weight |
|
| 51 | + */ |
|
| 52 | + public $weight; |
|
| 53 | + |
|
| 54 | + /** Maximum weight per axle. |
|
| 55 | + * @var float $max_weight_per_axle |
|
| 56 | + */ |
|
| 57 | + public $max_weight_per_axle; |
|
| 58 | + |
|
| 59 | + /** When the profile deleted |
|
| 60 | + * @var string $deleted_at |
|
| 61 | + */ |
|
| 62 | + public $deleted_at; |
|
| 63 | + |
|
| 64 | + /** When the profile created |
|
| 65 | + * @var string $created_at |
|
| 66 | + */ |
|
| 67 | + public $created_at; |
|
| 68 | + |
|
| 69 | + /** When the profile updated |
|
| 70 | + * @var string $updated_at |
|
| 71 | + */ |
|
| 72 | + public $updated_at; |
|
| 73 | + |
|
| 74 | + /** A type of the fuel |
|
| 75 | + * enum: ['unleaded 87','unleaded 89','unleaded 91', |
|
| 76 | + * 'unleaded 93','diesel','electric','hybrid'] |
|
| 77 | + * @var string $fuel_type |
|
| 78 | + */ |
|
| 79 | + public $fuel_type; |
|
| 80 | + |
|
| 81 | + /** Fuel consumption city |
|
| 82 | + * @var float $fuel_consumption_city |
|
| 83 | + */ |
|
| 84 | + public $fuel_consumption_city; |
|
| 85 | + |
|
| 86 | + /** Fuel consumption in the highway area |
|
| 87 | + * @var float $fuel_consumption_highway |
|
| 88 | + */ |
|
| 89 | + public $fuel_consumption_highway; |
|
| 90 | + |
|
| 91 | + /** Type of a hazardous material. |
|
| 92 | + * enum: ['general', 'explosives', 'flammable', 'inhalants', 'caustic', 'radioactive'] |
|
| 93 | + * @var string $hazmat_type |
|
| 94 | + */ |
|
| 95 | + public $hazmat_type; |
|
| 96 | + |
|
| 97 | + /** If true, the profile is predefined. |
|
| 98 | + * @var boolean $is_predefined |
|
| 99 | + */ |
|
| 100 | + public $is_predefined; |
|
| 101 | + |
|
| 102 | + /** If true, the profile is default. |
|
| 103 | + * @var boolean $is_default |
|
| 104 | + */ |
|
| 105 | + public $is_default; |
|
| 106 | + |
|
| 107 | + /** Height units (e.g. 'ft', 'm') |
|
| 108 | + * @var string $height_units |
|
| 109 | + */ |
|
| 110 | + public $height_units; |
|
| 111 | + |
|
| 112 | + /** Width units (e.g. 'ft', 'm') |
|
| 113 | + * @var string $width_units |
|
| 114 | + */ |
|
| 115 | + public $width_units; |
|
| 116 | + |
|
| 117 | + /** Length units (e.g. 'ft', 'm') |
|
| 118 | + * @var string $length_units |
|
| 119 | + */ |
|
| 120 | + public $length_units; |
|
| 121 | + |
|
| 122 | + /** Weight units (e.g. 'lb', 'kg') |
|
| 123 | + * @var string $weight_units |
|
| 124 | + */ |
|
| 125 | + public $weight_units; |
|
| 126 | + |
|
| 127 | + /** Maximum weight per axle units (e.g. 'lb', 'kg') |
|
| 128 | + * @var string $max_weight_per_axle_units |
|
| 129 | + */ |
|
| 130 | + public $max_weight_per_axle_units; |
|
| 131 | + |
|
| 132 | + /** Fuel consumption units in the city area (e.g. mpg) |
|
| 133 | + * @var string $fuel_consumption_city_unit |
|
| 134 | + */ |
|
| 135 | + public $fuel_consumption_city_unit; |
|
| 136 | + |
|
| 137 | + /** Fuel consumption units in the highway area (e.g. mpg) |
|
| 138 | + * @var string $fuel_consumption_highway_unit |
|
| 139 | + */ |
|
| 140 | + public $fuel_consumption_highway_unit; |
|
| 141 | + |
|
| 142 | + /** Height UF value (e.g. "7'") |
|
| 143 | + * @var string $height_uf_value |
|
| 144 | + */ |
|
| 145 | + public $height_uf_value; |
|
| 146 | + |
|
| 147 | + /** Width UF value (e.g. "8'") |
|
| 148 | + * @var string $width_uf_value |
|
| 149 | + */ |
|
| 150 | + public $width_uf_value; |
|
| 151 | + |
|
| 152 | + /** Length UF value (e.g. "20'") |
|
| 153 | + * @var string $length_uf_value |
|
| 154 | + */ |
|
| 155 | + public $length_uf_value; |
|
| 156 | + |
|
| 157 | + /** Weight UF value (e.g. "8,500lb") |
|
| 158 | + * @var string $weight_uf_value |
|
| 159 | + */ |
|
| 160 | + public $weight_uf_value; |
|
| 161 | + |
|
| 162 | + /** Maximum weight per axle (UF value, e.g. "8,500lb") |
|
| 163 | + * @var string $max_weight_per_axle_uf_value |
|
| 164 | + */ |
|
| 165 | + public $max_weight_per_axle_uf_value; |
|
| 166 | + |
|
| 167 | + /** Fuel consumption city (UF value, e.g. "20.01 mi/l") |
|
| 168 | + * @var string $fuel_consumption_city_uf_value |
|
| 169 | + */ |
|
| 170 | + public $fuel_consumption_city_uf_value; |
|
| 171 | + |
|
| 172 | + /** Fuel consumption highway (UF value, e.g. "2,000.01 mpg") |
|
| 173 | + * @var string $fuel_consumption_highway_uf_value |
|
| 174 | + */ |
|
| 175 | + public $fuel_consumption_highway_uf_value; |
|
| 176 | + |
|
| 177 | + public static function fromArray(array $params) |
|
| 178 | + { |
|
| 179 | + $vehicleProfile = new self(); |
|
| 180 | + |
|
| 181 | + foreach ($params as $key => $value) { |
|
| 182 | + if (is_null(Common::getValue($params, $key))) { |
|
| 183 | + continue; |
|
| 184 | + } |
|
| 185 | + if (property_exists($vehicleProfile, $key)) { |
|
| 186 | + $vehicleProfile->$key = $value; |
|
| 187 | + } |
|
| 188 | + } |
|
| 189 | + |
|
| 190 | + return $vehicleProfile; |
|
| 191 | + } |
|
| 192 | + |
|
| 193 | + public function __construct() |
|
| 194 | + { |
|
| 195 | + Route4Me::setBaseUrl(""); |
|
| 196 | + } |
|
| 197 | + |
|
| 198 | + public function removeVehicleProfile($vehicleProfileId) |
|
| 199 | + { |
|
| 200 | + //$vehicleProfileID = isset($params['vehicle_profile_id']) ? $params['vehicle_profile_id'] : null; |
|
| 201 | + |
|
| 202 | + $response = Route4Me::makeRequst([ |
|
| 203 | + 'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId, |
|
| 204 | + 'method' => 'DELETE', |
|
| 205 | + 'HTTPHEADER' => 'Content-Type: application/json; Accept: application/json', |
|
| 206 | + ]); |
|
| 207 | + |
|
| 208 | + return $response; |
|
| 209 | + } |
|
| 210 | + |
|
| 211 | + /** |
|
| 212 | + * @param $profileParams - an array from the VehicleParameters object. |
|
| 213 | + * @return The data including list of the vehicle profiles. |
|
| 214 | + * @throws \Route4Me\Exception\ApiError |
|
| 215 | + */ |
|
| 216 | + public function getVehicleProfiles($profileParams) |
|
| 217 | + { |
|
| 218 | + $allQueryFields = ['with_pagination', 'page', 'perPage']; |
|
| 219 | + |
|
| 220 | + $response = Route4Me::makeRequst([ |
|
| 221 | + 'url' => Endpoint::VehicleProfiles, |
|
| 222 | + 'method' => 'GET', |
|
| 223 | + 'query' => Route4Me::generateRequestParameters($allQueryFields, $profileParams), |
|
| 224 | + ]); |
|
| 225 | + |
|
| 226 | + return $response; |
|
| 227 | + } |
|
| 228 | + |
|
| 229 | + /** |
|
| 230 | + * @param $profileParams - Vehicle profile body parameters |
|
| 231 | + * @return Created vehicle profile |
|
| 232 | + * @throws \Route4Me\Exception\ApiError |
|
| 233 | + */ |
|
| 234 | + public function createVehicleProfile($profileParams) |
|
| 235 | + { |
|
| 236 | + $excludeFields = []; |
|
| 237 | + $allBodyFields = Route4Me::getObjectProperties(new VehicleProfile(), $excludeFields); |
|
| 238 | + |
|
| 239 | + $response = Route4Me::makeRequst([ |
|
| 240 | + 'url' => Endpoint::VehicleProfiles, |
|
| 241 | + 'method' => 'POST', |
|
| 242 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $profileParams), |
|
| 243 | + 'HTTPHEADER' => 'Content-Type: application/json' |
|
| 244 | + ]); |
|
| 245 | + |
|
| 246 | + return $response; |
|
| 247 | + } |
|
| 248 | + |
|
| 249 | + public function getVehicleProfileById($vehicleProfileId) |
|
| 250 | + { |
|
| 251 | + $response = Route4Me::makeRequst([ |
|
| 252 | + 'url' => Endpoint::VehicleProfiles . '/' . $vehicleProfileId, |
|
| 253 | + 'method' => 'GET', |
|
| 254 | + ]); |
|
| 255 | + |
|
| 256 | + return $response; |
|
| 257 | + } |
|
| 258 | + |
|
| 259 | + public function updateVehicleProfile($vehicleProfile) |
|
| 260 | + { |
|
| 261 | + $excludeFields = ['vehicle_profile_id', 'deleted_at', 'created_at', 'updated_at']; |
|
| 262 | + $allBodyFields = Route4Me::getObjectProperties(new self(), $excludeFields); |
|
| 263 | + |
|
| 264 | + $response = Route4Me::makeRequst([ |
|
| 265 | + 'url' => Endpoint::VehicleProfiles.'/'.$vehicleProfile['vehicle_profile_id'], |
|
| 266 | + 'method' => 'PATCH', |
|
| 267 | + 'body' => Route4Me::generateRequestParameters($allBodyFields, $vehicleProfile), |
|
| 268 | + 'HTTPHEADER' => 'Content-Type: application/json' |
|
| 269 | + ]); |
|
| 270 | + |
|
| 271 | + return $response; |
|
| 272 | + } |
|
| 273 | 273 | } |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | class DataVehicle extends Common |
| 9 | 9 | { |
| 10 | - /** Reduced vehicle object |
|
| 11 | - * @var VehicleReduced $vehicle |
|
| 12 | - */ |
|
| 13 | - public $vehicle = []; |
|
| 10 | + /** Reduced vehicle object |
|
| 11 | + * @var VehicleReduced $vehicle |
|
| 12 | + */ |
|
| 13 | + public $vehicle = []; |
|
| 14 | 14 | } |
| 15 | 15 | \ No newline at end of file |