@@ -7,101 +7,101 @@ |
||
| 7 | 7 | |
| 8 | 8 | class RouteParameters extends Common |
| 9 | 9 | { |
| 10 | - public $is_upload; |
|
| 11 | - public $rt; |
|
| 12 | - public $route_name; |
|
| 13 | - public $route_date; |
|
| 14 | - public $shared_publicly; |
|
| 15 | - public $disable_optimization; |
|
| 16 | - public $optimize; |
|
| 17 | - public $lock_last; |
|
| 18 | - public $vehicle_capacity; |
|
| 19 | - public $vehicle_max_cargo_weight; |
|
| 20 | - public $vehicle_max_cargo_volume; |
|
| 21 | - public $vehicle_max_distance_mi; |
|
| 22 | - public $subtour_max_revenue; |
|
| 23 | - public $distance_unit; |
|
| 24 | - public $travel_mode; |
|
| 25 | - public $avoid; |
|
| 26 | - public $avoidance_zones = []; |
|
| 27 | - public $vehicle_id; |
|
| 28 | - public $driver_id; |
|
| 29 | - public $dev_lat; |
|
| 30 | - public $dev_lng; |
|
| 31 | - public $route_max_duration; |
|
| 32 | - public $route_email; |
|
| 33 | - public $store_route; |
|
| 34 | - public $metric; |
|
| 35 | - public $algorithm_type; |
|
| 36 | - public $member_id; |
|
| 37 | - public $ip; |
|
| 38 | - public $dm; |
|
| 39 | - public $dirm; |
|
| 40 | - public $parts; |
|
| 41 | - public $parts_min; |
|
| 42 | - public $device_id; |
|
| 43 | - public $device_type; |
|
| 44 | - public $first_drive_then_wait_between_stops; |
|
| 45 | - public $has_trailer; |
|
| 46 | - public $trailer_weight_t; |
|
| 47 | - public $limited_weight_t; |
|
| 48 | - public $weight_per_axle_t; |
|
| 49 | - public $truck_height; |
|
| 50 | - public $truck_width; |
|
| 51 | - public $truck_length; |
|
| 52 | - public $truck_hazardous_goods; |
|
| 53 | - public $truck_axles; |
|
| 54 | - public $truck_toll_road_usage; |
|
| 55 | - public $truck_avoid_ferries; |
|
| 56 | - public $truck_hwy_only; |
|
| 57 | - public $truck_lcv; |
|
| 58 | - public $truck_borders; |
|
| 59 | - public $truck_side_street_adherence; |
|
| 60 | - public $truck_config; |
|
| 61 | - public $truck_dim_unit; |
|
| 62 | - public $truck_type; |
|
| 63 | - public $truck_weight; |
|
| 64 | - public $optimization_quality; |
|
| 65 | - public $override_addresses = []; |
|
| 66 | - public $max_tour_size; |
|
| 67 | - public $min_tour_size; |
|
| 68 | - public $uturn; |
|
| 69 | - public $leftturn; |
|
| 70 | - public $rightturn; |
|
| 71 | - public $route_time_multiplier; |
|
| 72 | - public $route_service_time_multiplier; |
|
| 73 | - public $optimization_engine; |
|
| 74 | - public $is_dynamic_start_time; |
|
| 75 | - public $bundling; |
|
| 10 | + public $is_upload; |
|
| 11 | + public $rt; |
|
| 12 | + public $route_name; |
|
| 13 | + public $route_date; |
|
| 14 | + public $shared_publicly; |
|
| 15 | + public $disable_optimization; |
|
| 16 | + public $optimize; |
|
| 17 | + public $lock_last; |
|
| 18 | + public $vehicle_capacity; |
|
| 19 | + public $vehicle_max_cargo_weight; |
|
| 20 | + public $vehicle_max_cargo_volume; |
|
| 21 | + public $vehicle_max_distance_mi; |
|
| 22 | + public $subtour_max_revenue; |
|
| 23 | + public $distance_unit; |
|
| 24 | + public $travel_mode; |
|
| 25 | + public $avoid; |
|
| 26 | + public $avoidance_zones = []; |
|
| 27 | + public $vehicle_id; |
|
| 28 | + public $driver_id; |
|
| 29 | + public $dev_lat; |
|
| 30 | + public $dev_lng; |
|
| 31 | + public $route_max_duration; |
|
| 32 | + public $route_email; |
|
| 33 | + public $store_route; |
|
| 34 | + public $metric; |
|
| 35 | + public $algorithm_type; |
|
| 36 | + public $member_id; |
|
| 37 | + public $ip; |
|
| 38 | + public $dm; |
|
| 39 | + public $dirm; |
|
| 40 | + public $parts; |
|
| 41 | + public $parts_min; |
|
| 42 | + public $device_id; |
|
| 43 | + public $device_type; |
|
| 44 | + public $first_drive_then_wait_between_stops; |
|
| 45 | + public $has_trailer; |
|
| 46 | + public $trailer_weight_t; |
|
| 47 | + public $limited_weight_t; |
|
| 48 | + public $weight_per_axle_t; |
|
| 49 | + public $truck_height; |
|
| 50 | + public $truck_width; |
|
| 51 | + public $truck_length; |
|
| 52 | + public $truck_hazardous_goods; |
|
| 53 | + public $truck_axles; |
|
| 54 | + public $truck_toll_road_usage; |
|
| 55 | + public $truck_avoid_ferries; |
|
| 56 | + public $truck_hwy_only; |
|
| 57 | + public $truck_lcv; |
|
| 58 | + public $truck_borders; |
|
| 59 | + public $truck_side_street_adherence; |
|
| 60 | + public $truck_config; |
|
| 61 | + public $truck_dim_unit; |
|
| 62 | + public $truck_type; |
|
| 63 | + public $truck_weight; |
|
| 64 | + public $optimization_quality; |
|
| 65 | + public $override_addresses = []; |
|
| 66 | + public $max_tour_size; |
|
| 67 | + public $min_tour_size; |
|
| 68 | + public $uturn; |
|
| 69 | + public $leftturn; |
|
| 70 | + public $rightturn; |
|
| 71 | + public $route_time_multiplier; |
|
| 72 | + public $route_service_time_multiplier; |
|
| 73 | + public $optimization_engine; |
|
| 74 | + public $is_dynamic_start_time; |
|
| 75 | + public $bundling; |
|
| 76 | 76 | |
| 77 | - public static function fromArray(array $params) |
|
| 78 | - { |
|
| 79 | - $routeParams = new self(); |
|
| 80 | - foreach ($params as $key => $value) { |
|
| 81 | - if (property_exists($routeParams, $key)) { |
|
| 82 | - $routeParams->{$key} = $value; |
|
| 83 | - } |
|
| 84 | - } |
|
| 77 | + public static function fromArray(array $params) |
|
| 78 | + { |
|
| 79 | + $routeParams = new self(); |
|
| 80 | + foreach ($params as $key => $value) { |
|
| 81 | + if (property_exists($routeParams, $key)) { |
|
| 82 | + $routeParams->{$key} = $value; |
|
| 83 | + } |
|
| 84 | + } |
|
| 85 | 85 | |
| 86 | - return $routeParams; |
|
| 87 | - } |
|
| 86 | + return $routeParams; |
|
| 87 | + } |
|
| 88 | 88 | |
| 89 | - public function setAddressBundle($addressBundle) |
|
| 90 | - { |
|
| 91 | - $this->bundling = $addressBundle; |
|
| 92 | - } |
|
| 89 | + public function setAddressBundle($addressBundle) |
|
| 90 | + { |
|
| 91 | + $this->bundling = $addressBundle; |
|
| 92 | + } |
|
| 93 | 93 | |
| 94 | - public function getAddressBundle() |
|
| 95 | - { |
|
| 96 | - return $this->bundling; |
|
| 97 | - } |
|
| 94 | + public function getAddressBundle() |
|
| 95 | + { |
|
| 96 | + return $this->bundling; |
|
| 97 | + } |
|
| 98 | 98 | |
| 99 | - public static function getAllProperties() |
|
| 100 | - { |
|
| 101 | - $routeParams = new self(); |
|
| 99 | + public static function getAllProperties() |
|
| 100 | + { |
|
| 101 | + $routeParams = new self(); |
|
| 102 | 102 | |
| 103 | - $fields = array_keys(get_object_vars($routeParams)); |
|
| 103 | + $fields = array_keys(get_object_vars($routeParams)); |
|
| 104 | 104 | |
| 105 | - return $fields; |
|
| 106 | - } |
|
| 105 | + return $fields; |
|
| 106 | + } |
|
| 107 | 107 | } |
@@ -6,13 +6,13 @@ |
||
| 6 | 6 | /** Fuel consumption units enumeration. */ |
| 7 | 7 | class FuelConsumptionUnits |
| 8 | 8 | { |
| 9 | - const LITERS_PER_100_KILOMETERS = 'L/100km'; |
|
| 9 | + const LITERS_PER_100_KILOMETERS = 'L/100km'; |
|
| 10 | 10 | |
| 11 | - const KILOMETERS_PER_LITER = 'km/l'; |
|
| 11 | + const KILOMETERS_PER_LITER = 'km/l'; |
|
| 12 | 12 | |
| 13 | - const MILES_PER_GALLON_US = 'mpg'; |
|
| 13 | + const MILES_PER_GALLON_US = 'mpg'; |
|
| 14 | 14 | |
| 15 | - const MILES_PER_GALLON_UK = 'mpg uk'; |
|
| 15 | + const MILES_PER_GALLON_UK = 'mpg uk'; |
|
| 16 | 16 | |
| 17 | - const MILES_PER_LITER = 'mi/l'; |
|
| 17 | + const MILES_PER_LITER = 'mi/l'; |
|
| 18 | 18 | } |
| 19 | 19 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | /** Vehicle size (height, weidth, length) units. */ |
| 7 | 7 | class VehicleSizeUnits |
| 8 | 8 | { |
| 9 | - const METER = 'm'; |
|
| 9 | + const METER = 'm'; |
|
| 10 | 10 | |
| 11 | - const FOOT = 'ft'; |
|
| 11 | + const FOOT = 'ft'; |
|
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -6,9 +6,9 @@ |
||
| 6 | 6 | /** Vehicle weight units. */ |
| 7 | 7 | class VehicleWeightUnits |
| 8 | 8 | { |
| 9 | - const KILOGRAM = 'kg'; |
|
| 9 | + const KILOGRAM = 'kg'; |
|
| 10 | 10 | |
| 11 | - const POUND = 'lb'; |
|
| 11 | + const POUND = 'lb'; |
|
| 12 | 12 | |
| 13 | - const TONNE = 't'; |
|
| 13 | + const TONNE = 't'; |
|
| 14 | 14 | } |
| 15 | 15 | \ No newline at end of file |
@@ -6,17 +6,17 @@ |
||
| 6 | 6 | /** Enumeration of the fuel types. */ |
| 7 | 7 | class FuelTypes |
| 8 | 8 | { |
| 9 | - const UNLEADED_87 = "unleaded 87"; |
|
| 9 | + const UNLEADED_87 = "unleaded 87"; |
|
| 10 | 10 | |
| 11 | - const UNLEADED_89 = "unleaded 89"; |
|
| 11 | + const UNLEADED_89 = "unleaded 89"; |
|
| 12 | 12 | |
| 13 | - const UNLEADED_91 = "unleaded 91"; |
|
| 13 | + const UNLEADED_91 = "unleaded 91"; |
|
| 14 | 14 | |
| 15 | - const UNLEADED_93 = "unleaded 93"; |
|
| 15 | + const UNLEADED_93 = "unleaded 93"; |
|
| 16 | 16 | |
| 17 | - const DIESEL = "diesel"; |
|
| 17 | + const DIESEL = "diesel"; |
|
| 18 | 18 | |
| 19 | - const ELECTRIC = "electric"; |
|
| 19 | + const ELECTRIC = "electric"; |
|
| 20 | 20 | |
| 21 | - const HYBRID = "hybrid"; |
|
| 21 | + const HYBRID = "hybrid"; |
|
| 22 | 22 | } |
| 23 | 23 | \ No newline at end of file |
@@ -4,6 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | class DistanceUnit |
| 6 | 6 | { |
| 7 | - const MILES = 'mi'; |
|
| 8 | - const KILOMETERS = 'km'; |
|
| 7 | + const MILES = 'mi'; |
|
| 8 | + const KILOMETERS = 'km'; |
|
| 9 | 9 | } |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class OptimizationType |
| 6 | 6 | { |
| 7 | - const DISTANCE = 'Distance'; |
|
| 8 | - const TIME = 'Time'; |
|
| 9 | - const TIME_WITH_TRAFFIC = 'timeWithTraffic'; |
|
| 7 | + const DISTANCE = 'Distance'; |
|
| 8 | + const TIME = 'Time'; |
|
| 9 | + const TIME_WITH_TRAFFIC = 'timeWithTraffic'; |
|
| 10 | 10 | } |
@@ -10,67 +10,67 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | class OrderInventory extends \Route4Me\Common |
| 12 | 12 | { |
| 13 | - /** Unique inventory ID |
|
| 14 | - * @var integer $inventory_id |
|
| 15 | - */ |
|
| 16 | - public $inventory_id; |
|
| 17 | - |
|
| 18 | - /** Unique order ID |
|
| 19 | - * @var integer $order_id |
|
| 20 | - */ |
|
| 21 | - public $order_id; |
|
| 22 | - |
|
| 23 | - /** Order inventory name |
|
| 24 | - * @var string $name |
|
| 25 | - */ |
|
| 26 | - public $name; |
|
| 27 | - |
|
| 28 | - /** Order inventory quantity |
|
| 29 | - * @var integer $quantity |
|
| 30 | - */ |
|
| 31 | - public $quantity; |
|
| 32 | - |
|
| 33 | - /** Total weight of the order inventory. |
|
| 34 | - * @var double $total_weight |
|
| 35 | - */ |
|
| 36 | - public $total_weight; |
|
| 37 | - |
|
| 38 | - /** Total volume of the inventory. |
|
| 39 | - * @var double $total_volume |
|
| 40 | - */ |
|
| 41 | - public $total_volume; |
|
| 42 | - |
|
| 43 | - /** Total cost of the inventory. |
|
| 44 | - * @var double $total_cost |
|
| 45 | - */ |
|
| 46 | - public $total_cost; |
|
| 47 | - |
|
| 48 | - /** Total price of the inventory. |
|
| 49 | - * @var double $total_price |
|
| 50 | - */ |
|
| 51 | - public $total_price; |
|
| 52 | - |
|
| 53 | - /** When the inventory created. |
|
| 54 | - * @var string $created_at |
|
| 55 | - */ |
|
| 56 | - public $created_at; |
|
| 57 | - |
|
| 58 | - /** When the inventory updated. |
|
| 59 | - * @var string $updated_at |
|
| 60 | - */ |
|
| 61 | - public $updated_at; |
|
| 62 | - |
|
| 63 | - public static function fromArray(array $params) |
|
| 64 | - { |
|
| 65 | - $orderInventory = new self(); |
|
| 66 | - |
|
| 67 | - foreach ($params as $key => $value) { |
|
| 68 | - if (property_exists($orderInventory, $key)) { |
|
| 69 | - $orderInventory->{$key} = $value; |
|
| 70 | - } |
|
| 71 | - } |
|
| 72 | - |
|
| 73 | - return $orderInventory; |
|
| 74 | - } |
|
| 13 | + /** Unique inventory ID |
|
| 14 | + * @var integer $inventory_id |
|
| 15 | + */ |
|
| 16 | + public $inventory_id; |
|
| 17 | + |
|
| 18 | + /** Unique order ID |
|
| 19 | + * @var integer $order_id |
|
| 20 | + */ |
|
| 21 | + public $order_id; |
|
| 22 | + |
|
| 23 | + /** Order inventory name |
|
| 24 | + * @var string $name |
|
| 25 | + */ |
|
| 26 | + public $name; |
|
| 27 | + |
|
| 28 | + /** Order inventory quantity |
|
| 29 | + * @var integer $quantity |
|
| 30 | + */ |
|
| 31 | + public $quantity; |
|
| 32 | + |
|
| 33 | + /** Total weight of the order inventory. |
|
| 34 | + * @var double $total_weight |
|
| 35 | + */ |
|
| 36 | + public $total_weight; |
|
| 37 | + |
|
| 38 | + /** Total volume of the inventory. |
|
| 39 | + * @var double $total_volume |
|
| 40 | + */ |
|
| 41 | + public $total_volume; |
|
| 42 | + |
|
| 43 | + /** Total cost of the inventory. |
|
| 44 | + * @var double $total_cost |
|
| 45 | + */ |
|
| 46 | + public $total_cost; |
|
| 47 | + |
|
| 48 | + /** Total price of the inventory. |
|
| 49 | + * @var double $total_price |
|
| 50 | + */ |
|
| 51 | + public $total_price; |
|
| 52 | + |
|
| 53 | + /** When the inventory created. |
|
| 54 | + * @var string $created_at |
|
| 55 | + */ |
|
| 56 | + public $created_at; |
|
| 57 | + |
|
| 58 | + /** When the inventory updated. |
|
| 59 | + * @var string $updated_at |
|
| 60 | + */ |
|
| 61 | + public $updated_at; |
|
| 62 | + |
|
| 63 | + public static function fromArray(array $params) |
|
| 64 | + { |
|
| 65 | + $orderInventory = new self(); |
|
| 66 | + |
|
| 67 | + foreach ($params as $key => $value) { |
|
| 68 | + if (property_exists($orderInventory, $key)) { |
|
| 69 | + $orderInventory->{$key} = $value; |
|
| 70 | + } |
|
| 71 | + } |
|
| 72 | + |
|
| 73 | + return $orderInventory; |
|
| 74 | + } |
|
| 75 | 75 | |
| 76 | 76 | } |
| 77 | 77 | \ No newline at end of file |
@@ -9,130 +9,130 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class Connection extends Common |
| 11 | 11 | { |
| 12 | - /** |
|
| 13 | - * Telemetics connection name |
|
| 14 | - * @var type string |
|
| 15 | - */ |
|
| 16 | - public $name; |
|
| 17 | - |
|
| 18 | - /** |
|
| 19 | - * Telemetics connection type |
|
| 20 | - * @var type string |
|
| 21 | - */ |
|
| 22 | - public $vendor; |
|
| 12 | + /** |
|
| 13 | + * Telemetics connection name |
|
| 14 | + * @var type string |
|
| 15 | + */ |
|
| 16 | + public $name; |
|
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * Telemetics connection type |
|
| 20 | + * @var type string |
|
| 21 | + */ |
|
| 22 | + public $vendor; |
|
| 23 | 23 | |
| 24 | - /** |
|
| 25 | - * Telematics connection access host |
|
| 26 | - * @var type string |
|
| 27 | - */ |
|
| 28 | - public $host; |
|
| 29 | - |
|
| 30 | - /** |
|
| 31 | - * Telematics connection access api_key |
|
| 32 | - * @var type string |
|
| 33 | - */ |
|
| 34 | - public $api_key; |
|
| 35 | - |
|
| 36 | - /** |
|
| 37 | - * Telematics connection access account ID. |
|
| 38 | - * @var type string |
|
| 39 | - */ |
|
| 40 | - public $account_id; |
|
| 41 | - |
|
| 42 | - /** |
|
| 43 | - * Telematics connection access username |
|
| 44 | - * @var type string |
|
| 45 | - */ |
|
| 46 | - public $username; |
|
| 47 | - |
|
| 48 | - /** |
|
| 49 | - * Telematics connection access password |
|
| 50 | - * @var type string |
|
| 51 | - */ |
|
| 52 | - public $password; |
|
| 53 | - |
|
| 54 | - /** |
|
| 55 | - * Telematics connection access token |
|
| 56 | - * @var type string |
|
| 57 | - */ |
|
| 58 | - public $connection_token; |
|
| 59 | - |
|
| 60 | - /** |
|
| 61 | - * Telemetics connection type ID |
|
| 62 | - * @var type integer |
|
| 63 | - */ |
|
| 64 | - public $vendor_id; |
|
| 65 | - |
|
| 66 | - /** |
|
| 67 | - * Disable/enable vehicle tracking |
|
| 68 | - * @var type Boolean |
|
| 69 | - */ |
|
| 70 | - public $is_enabled; |
|
| 71 | - |
|
| 72 | - /** |
|
| 73 | - * Vehicle tracking interval in seconds |
|
| 74 | - * @var type integer |
|
| 75 | - */ |
|
| 76 | - public $vehicle_position_refresh_rate; |
|
| 77 | - |
|
| 78 | - /** |
|
| 79 | - * Maximum idle time |
|
| 80 | - * @var type integer |
|
| 81 | - */ |
|
| 82 | - public $max_idle_time; |
|
| 83 | - |
|
| 84 | - /** |
|
| 85 | - * Syncronized vehicles count |
|
| 86 | - * @var type integer |
|
| 87 | - */ |
|
| 88 | - public $synced_vehicles_count; |
|
| 89 | - |
|
| 90 | - /** |
|
| 91 | - * Total vehicles count |
|
| 92 | - * @var type integer |
|
| 93 | - */ |
|
| 94 | - public $total_vehicles_count; |
|
| 95 | - |
|
| 96 | - /** |
|
| 97 | - * Total addresses count |
|
| 98 | - * @var type integer |
|
| 99 | - */ |
|
| 100 | - public $total_addresses_count; |
|
| 101 | - |
|
| 102 | - /** |
|
| 103 | - * The last timestamp the vehicles reloaded |
|
| 104 | - * @var type string |
|
| 105 | - */ |
|
| 106 | - public $last_vehicles_reload; |
|
| 107 | - |
|
| 108 | - /** |
|
| 109 | - * The last timestamp the addresses reloaded |
|
| 110 | - * @var type string |
|
| 111 | - */ |
|
| 112 | - public $last_addresses_reload; |
|
| 113 | - |
|
| 114 | - /** |
|
| 115 | - * The last timestamp the postions reloaded |
|
| 116 | - * @var type string |
|
| 117 | - */ |
|
| 118 | - public $last_position_reload; |
|
| 119 | - |
|
| 120 | - /** |
|
| 121 | - * Metadata, custom key-value storage. |
|
| 122 | - * @var type array |
|
| 123 | - */ |
|
| 124 | - public $metadata = []; |
|
| 125 | - |
|
| 126 | - public static function fromArray(array $params) |
|
| 127 | - { |
|
| 128 | - $thisParams = new self(); |
|
| 24 | + /** |
|
| 25 | + * Telematics connection access host |
|
| 26 | + * @var type string |
|
| 27 | + */ |
|
| 28 | + public $host; |
|
| 29 | + |
|
| 30 | + /** |
|
| 31 | + * Telematics connection access api_key |
|
| 32 | + * @var type string |
|
| 33 | + */ |
|
| 34 | + public $api_key; |
|
| 35 | + |
|
| 36 | + /** |
|
| 37 | + * Telematics connection access account ID. |
|
| 38 | + * @var type string |
|
| 39 | + */ |
|
| 40 | + public $account_id; |
|
| 41 | + |
|
| 42 | + /** |
|
| 43 | + * Telematics connection access username |
|
| 44 | + * @var type string |
|
| 45 | + */ |
|
| 46 | + public $username; |
|
| 47 | + |
|
| 48 | + /** |
|
| 49 | + * Telematics connection access password |
|
| 50 | + * @var type string |
|
| 51 | + */ |
|
| 52 | + public $password; |
|
| 53 | + |
|
| 54 | + /** |
|
| 55 | + * Telematics connection access token |
|
| 56 | + * @var type string |
|
| 57 | + */ |
|
| 58 | + public $connection_token; |
|
| 59 | + |
|
| 60 | + /** |
|
| 61 | + * Telemetics connection type ID |
|
| 62 | + * @var type integer |
|
| 63 | + */ |
|
| 64 | + public $vendor_id; |
|
| 65 | + |
|
| 66 | + /** |
|
| 67 | + * Disable/enable vehicle tracking |
|
| 68 | + * @var type Boolean |
|
| 69 | + */ |
|
| 70 | + public $is_enabled; |
|
| 71 | + |
|
| 72 | + /** |
|
| 73 | + * Vehicle tracking interval in seconds |
|
| 74 | + * @var type integer |
|
| 75 | + */ |
|
| 76 | + public $vehicle_position_refresh_rate; |
|
| 77 | + |
|
| 78 | + /** |
|
| 79 | + * Maximum idle time |
|
| 80 | + * @var type integer |
|
| 81 | + */ |
|
| 82 | + public $max_idle_time; |
|
| 83 | + |
|
| 84 | + /** |
|
| 85 | + * Syncronized vehicles count |
|
| 86 | + * @var type integer |
|
| 87 | + */ |
|
| 88 | + public $synced_vehicles_count; |
|
| 89 | + |
|
| 90 | + /** |
|
| 91 | + * Total vehicles count |
|
| 92 | + * @var type integer |
|
| 93 | + */ |
|
| 94 | + public $total_vehicles_count; |
|
| 95 | + |
|
| 96 | + /** |
|
| 97 | + * Total addresses count |
|
| 98 | + * @var type integer |
|
| 99 | + */ |
|
| 100 | + public $total_addresses_count; |
|
| 101 | + |
|
| 102 | + /** |
|
| 103 | + * The last timestamp the vehicles reloaded |
|
| 104 | + * @var type string |
|
| 105 | + */ |
|
| 106 | + public $last_vehicles_reload; |
|
| 107 | + |
|
| 108 | + /** |
|
| 109 | + * The last timestamp the addresses reloaded |
|
| 110 | + * @var type string |
|
| 111 | + */ |
|
| 112 | + public $last_addresses_reload; |
|
| 113 | + |
|
| 114 | + /** |
|
| 115 | + * The last timestamp the postions reloaded |
|
| 116 | + * @var type string |
|
| 117 | + */ |
|
| 118 | + public $last_position_reload; |
|
| 119 | + |
|
| 120 | + /** |
|
| 121 | + * Metadata, custom key-value storage. |
|
| 122 | + * @var type array |
|
| 123 | + */ |
|
| 124 | + public $metadata = []; |
|
| 125 | + |
|
| 126 | + public static function fromArray(array $params) |
|
| 127 | + { |
|
| 128 | + $thisParams = new self(); |
|
| 129 | 129 | |
| 130 | - foreach ($params as $key => $value) { |
|
| 131 | - if (property_exists($thisParams, $key)) { |
|
| 132 | - $thisParams->{$key} = $value; |
|
| 133 | - } |
|
| 134 | - } |
|
| 130 | + foreach ($params as $key => $value) { |
|
| 131 | + if (property_exists($thisParams, $key)) { |
|
| 132 | + $thisParams->{$key} = $value; |
|
| 133 | + } |
|
| 134 | + } |
|
| 135 | 135 | |
| 136 | - return $thisParams; |
|
| 137 | - } |
|
| 136 | + return $thisParams; |
|
| 137 | + } |
|
| 138 | 138 | } |