@@ -9,66 +9,66 @@ |
||
9 | 9 | */ |
10 | 10 | class RouteAdvancedConstraints extends \Route4Me\Common |
11 | 11 | { |
12 | - /** Maximum cargo volume per route |
|
13 | - * @var double $max_cargo_volume |
|
14 | - */ |
|
15 | - public $max_cargo_volume; |
|
12 | + /** Maximum cargo volume per route |
|
13 | + * @var double $max_cargo_volume |
|
14 | + */ |
|
15 | + public $max_cargo_volume; |
|
16 | 16 | |
17 | - /** Vehicle capacity. |
|
18 | - * <para>How much total cargo can be transported per route (units, e.g. cubic meters)</para> |
|
19 | - * @var integer $max_capacity |
|
20 | - */ |
|
21 | - public $max_capacity; |
|
17 | + /** Vehicle capacity. |
|
18 | + * <para>How much total cargo can be transported per route (units, e.g. cubic meters)</para> |
|
19 | + * @var integer $max_capacity |
|
20 | + */ |
|
21 | + public $max_capacity; |
|
22 | 22 | |
23 | - /** Legacy feature which permits a user to request an example number of optimized routes. |
|
24 | - * @var integer $members_count |
|
25 | - */ |
|
26 | - public $members_count; |
|
23 | + /** Legacy feature which permits a user to request an example number of optimized routes. |
|
24 | + * @var integer $members_count |
|
25 | + */ |
|
26 | + public $members_count; |
|
27 | 27 | |
28 | - /** An array of the available time windows (e.g. [ [25200, 75000 ] ) |
|
29 | - * @var Array $available_time_windows |
|
30 | - */ |
|
31 | - public $available_time_windows; |
|
28 | + /** An array of the available time windows (e.g. [ [25200, 75000 ] ) |
|
29 | + * @var Array $available_time_windows |
|
30 | + */ |
|
31 | + public $available_time_windows; |
|
32 | 32 | |
33 | - /** The driver tags specified in a team member's custom data. |
|
34 | - * (e.g. "driver skills": |
|
35 | - * ["Class A CDL", "Class B CDL", "Forklift", "Skid Steer Loader", "Independent Contractor"] |
|
36 | - * @var string[] $tags |
|
37 | - */ |
|
38 | - public $tags; |
|
33 | + /** The driver tags specified in a team member's custom data. |
|
34 | + * (e.g. "driver skills": |
|
35 | + * ["Class A CDL", "Class B CDL", "Forklift", "Skid Steer Loader", "Independent Contractor"] |
|
36 | + * @var string[] $tags |
|
37 | + */ |
|
38 | + public $tags; |
|
39 | 39 | |
40 | - /** An array of the skilled driver IDs. |
|
41 | - * @var integer[] $route4me_members_id |
|
42 | - */ |
|
43 | - public $route4me_members_id; |
|
40 | + /** An array of the skilled driver IDs. |
|
41 | + * @var integer[] $route4me_members_id |
|
42 | + */ |
|
43 | + public $route4me_members_id; |
|
44 | 44 | |
45 | - /** |
|
46 | - * A depot address. |
|
47 | - * @var Address |
|
48 | - */ |
|
49 | - public $depot_address; |
|
45 | + /** |
|
46 | + * A depot address. |
|
47 | + * @var Address |
|
48 | + */ |
|
49 | + public $depot_address; |
|
50 | 50 | |
51 | - /** |
|
52 | - * An array of locations. |
|
53 | - * @var object[] |
|
54 | - */ |
|
55 | - public $location_sequence_pattern; |
|
51 | + /** |
|
52 | + * An array of locations. |
|
53 | + * @var object[] |
|
54 | + */ |
|
55 | + public $location_sequence_pattern; |
|
56 | 56 | |
57 | - /** |
|
58 | - * Group name of the advanced constraints. |
|
59 | - * @var string |
|
60 | - */ |
|
61 | - public $group; |
|
57 | + /** |
|
58 | + * Group name of the advanced constraints. |
|
59 | + * @var string |
|
60 | + */ |
|
61 | + public $group; |
|
62 | 62 | |
63 | - public static function fromArray(array $params) |
|
64 | - { |
|
65 | - $routeParams = new self(); |
|
66 | - foreach ($params as $key => $value) { |
|
67 | - if (property_exists($routeParams, $key)) { |
|
68 | - $routeParams->{$key} = $value; |
|
69 | - } |
|
70 | - } |
|
63 | + public static function fromArray(array $params) |
|
64 | + { |
|
65 | + $routeParams = new self(); |
|
66 | + foreach ($params as $key => $value) { |
|
67 | + if (property_exists($routeParams, $key)) { |
|
68 | + $routeParams->{$key} = $value; |
|
69 | + } |
|
70 | + } |
|
71 | 71 | |
72 | - return $routeParams; |
|
73 | - } |
|
72 | + return $routeParams; |
|
73 | + } |
|
74 | 74 | } |