@@ 45-51 (lines=7) @@ | ||
42 | $problem->parameters = RouteParameters::fromArray($params['parameters']); |
|
43 | } |
|
44 | ||
45 | if (isset($params['addresses'])) { |
|
46 | $addresses = array(); |
|
47 | ||
48 | foreach ($params['addresses'] as $address) { |
|
49 | $addresses[] = Address::fromArray($address); |
|
50 | } |
|
51 | ||
52 | $problem->addresses = $addresses; |
|
53 | } |
|
54 |
@@ 79-86 (lines=8) @@ | ||
76 | $route->parameters = RouteParameters::fromArray($params['parameters']); |
|
77 | } |
|
78 | ||
79 | if (isset($params['addresses'])) { |
|
80 | $addresses = array(); |
|
81 | foreach ($params['addresses'] as $address) { |
|
82 | $addresses[] = Address::fromArray($address); |
|
83 | } |
|
84 | ||
85 | $route->addresses = $addresses; |
|
86 | } |
|
87 | ||
88 | $route->links = Common::getValue($params, 'links', array()); |
|
89 | $route->directions = Common::getValue($params, 'directions', array()); |