@@ -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 | } |
@@ -10,96 +10,96 @@ |
||
10 | 10 | */ |
11 | 11 | class ConnectionParameters extends Common |
12 | 12 | { |
13 | - /** |
|
14 | - * Telemetics connection type |
|
15 | - * @var type string |
|
16 | - */ |
|
17 | - public $vendor; |
|
13 | + /** |
|
14 | + * Telemetics connection type |
|
15 | + * @var type string |
|
16 | + */ |
|
17 | + public $vendor; |
|
18 | 18 | |
19 | - /** |
|
20 | - * Telemetics connection type ID |
|
21 | - * @var type integer |
|
22 | - */ |
|
23 | - public $vendor_id; |
|
19 | + /** |
|
20 | + * Telemetics connection type ID |
|
21 | + * @var type integer |
|
22 | + */ |
|
23 | + public $vendor_id; |
|
24 | 24 | |
25 | - /** |
|
26 | - * Telemetics connection name |
|
27 | - * Required for telematics connection registration. |
|
28 | - * @var type string |
|
29 | - */ |
|
30 | - public $name; |
|
25 | + /** |
|
26 | + * Telemetics connection name |
|
27 | + * Required for telematics connection registration. |
|
28 | + * @var type string |
|
29 | + */ |
|
30 | + public $name; |
|
31 | 31 | |
32 | - /** |
|
33 | - * Telematics connection access host. |
|
34 | - * @var type string |
|
35 | - */ |
|
36 | - public $host; |
|
32 | + /** |
|
33 | + * Telematics connection access host. |
|
34 | + * @var type string |
|
35 | + */ |
|
36 | + public $host; |
|
37 | 37 | |
38 | - /** |
|
39 | - * Telematics connection access api_key. |
|
40 | - * @var type string |
|
41 | - */ |
|
42 | - public $api_key; |
|
38 | + /** |
|
39 | + * Telematics connection access api_key. |
|
40 | + * @var type string |
|
41 | + */ |
|
42 | + public $api_key; |
|
43 | 43 | |
44 | - /** |
|
45 | - * Telematics connection access account_id. |
|
46 | - * @var type string |
|
47 | - */ |
|
48 | - public $account_id; |
|
44 | + /** |
|
45 | + * Telematics connection access account_id. |
|
46 | + * @var type string |
|
47 | + */ |
|
48 | + public $account_id; |
|
49 | 49 | |
50 | - /** |
|
51 | - * Telematics connection access username |
|
52 | - * @var type string |
|
53 | - */ |
|
54 | - public $username; |
|
50 | + /** |
|
51 | + * Telematics connection access username |
|
52 | + * @var type string |
|
53 | + */ |
|
54 | + public $username; |
|
55 | 55 | |
56 | - /** |
|
57 | - * Telematics connection access password. |
|
58 | - * @var type string |
|
59 | - */ |
|
60 | - public $password; |
|
56 | + /** |
|
57 | + * Telematics connection access password. |
|
58 | + * @var type string |
|
59 | + */ |
|
60 | + public $password; |
|
61 | 61 | |
62 | - /** |
|
63 | - * Vehicle tracking interval in seconds (default value 60). |
|
64 | - * @var type integer |
|
65 | - */ |
|
66 | - public $vehicle_position_refresh_rate; |
|
62 | + /** |
|
63 | + * Vehicle tracking interval in seconds (default value 60). |
|
64 | + * @var type integer |
|
65 | + */ |
|
66 | + public $vehicle_position_refresh_rate; |
|
67 | 67 | |
68 | - /** |
|
69 | - * Validate connections credentials. |
|
70 | - * @var type Boolean |
|
71 | - */ |
|
72 | - public $validate_remote_credentials; |
|
68 | + /** |
|
69 | + * Validate connections credentials. |
|
70 | + * @var type Boolean |
|
71 | + */ |
|
72 | + public $validate_remote_credentials; |
|
73 | 73 | |
74 | - /** |
|
75 | - * Disable/enable vehicle tracking. |
|
76 | - * @var type Boolean |
|
77 | - */ |
|
78 | - public $is_enabled; |
|
74 | + /** |
|
75 | + * Disable/enable vehicle tracking. |
|
76 | + * @var type Boolean |
|
77 | + */ |
|
78 | + public $is_enabled; |
|
79 | 79 | |
80 | - /** |
|
81 | - * Metadata |
|
82 | - * @var type string |
|
83 | - */ |
|
84 | - public $metadata; |
|
80 | + /** |
|
81 | + * Metadata |
|
82 | + * @var type string |
|
83 | + */ |
|
84 | + public $metadata; |
|
85 | 85 | |
86 | - /** |
|
87 | - * Telematics connection access token. |
|
88 | - * Required to show specified connection. |
|
89 | - * @var type string |
|
90 | - */ |
|
91 | - public $connection_token; |
|
86 | + /** |
|
87 | + * Telematics connection access token. |
|
88 | + * Required to show specified connection. |
|
89 | + * @var type string |
|
90 | + */ |
|
91 | + public $connection_token; |
|
92 | 92 | |
93 | - public static function fromArray(array $params) |
|
94 | - { |
|
95 | - $thisParams = new self(); |
|
93 | + public static function fromArray(array $params) |
|
94 | + { |
|
95 | + $thisParams = new self(); |
|
96 | 96 | |
97 | - foreach ($params as $key => $value) { |
|
98 | - if (property_exists($thisParams, $key)) { |
|
99 | - $thisParams->{$key} = $value; |
|
100 | - } |
|
101 | - } |
|
97 | + foreach ($params as $key => $value) { |
|
98 | + if (property_exists($thisParams, $key)) { |
|
99 | + $thisParams->{$key} = $value; |
|
100 | + } |
|
101 | + } |
|
102 | 102 | |
103 | - return $thisParams; |
|
104 | - } |
|
103 | + return $thisParams; |
|
104 | + } |
|
105 | 105 | } |