@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Anax\Route; |
4 | 4 | |
5 | 5 | use Anax\Commons\ContainerInjectableInterface; |
6 | -use Anax\Route\Exception\ConfigurationException; |
|
7 | 6 | |
8 | 7 | /** |
9 | 8 | * Route to match a $path, mounted on $mount having a $handler to call. |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | * |
17 | 17 | * @param string $method the request method. |
18 | 18 | * @param string $path that was matched. |
19 | - * @param string|array $action base for the callable. |
|
19 | + * @param callable|null $action base for the callable. |
|
20 | 20 | * @param array $arguments optional arguments. |
21 | 21 | * @param ContainerInjectableInterface $di container with services. |
22 | 22 | * |
@@ -138,7 +138,6 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @param string|array $action base for the callable |
140 | 140 | * @param array $arguments optional arguments |
141 | - * @param ContainerInjectableInterface $di container with services |
|
142 | 141 | * |
143 | 142 | * @return mixed as the result from the route handler. |
144 | 143 | */ |
@@ -88,9 +88,9 @@ discard block |
||
88 | 88 | * Check if value is matching a certain type of values. |
89 | 89 | * |
90 | 90 | * @param string $value the value to check. |
91 | - * @param array $type the expected type to check against. |
|
91 | + * @param string $type the expected type to check against. |
|
92 | 92 | * |
93 | - * @return boolean |
|
93 | + * @return boolean|null |
|
94 | 94 | */ |
95 | 95 | private function checkPartMatchingType($value, $type) |
96 | 96 | { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * conversion accordingly. |
124 | 124 | * |
125 | 125 | * @param string $value the value to check. |
126 | - * @param array $type the expected type to check against. |
|
126 | + * @param string|null $type the expected type to check against. |
|
127 | 127 | * |
128 | 128 | * @return boolean |
129 | 129 | */ |
@@ -2,9 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Anax\Route; |
4 | 4 | |
5 | -use Anax\Commons\ContainerInjectableInterface; |
|
6 | -use Anax\Route\Exception\ConfigurationException; |
|
7 | - |
|
8 | 5 | /** |
9 | 6 | * Matching a incoming path to see it it matches a route. |
10 | 7 | */ |
@@ -459,7 +459,7 @@ |
||
459 | 459 | /** |
460 | 460 | * Get the route for the last route that was handled. |
461 | 461 | * |
462 | - * @return mixed |
|
462 | + * @return string |
|
463 | 463 | */ |
464 | 464 | public function getLastRoute() |
465 | 465 | { |