Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
30 | public function get(string $identifier, array $routeParameter = []): Route |
||
31 | { |
||
32 | if (!isset($this->methods[$identifier])) { |
||
33 | throw new UnknownRouteException('The route with identifier "' . $identifier . '" is unknown', 1536351904); |
||
34 | } |
||
35 | return new Route($this->methods[$identifier][0], $this->methods[$identifier][1], $routeParameter); |
||
36 | } |
||
38 |