Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celemas\Router; |
| 6 | |
| 7 | /** @psalm-api */ |
| 8 | interface RouteAdder |
| 9 | { |
| 10 | public function addRoute(Route $route): Route; |
| 11 | |
| 12 | public function group( |
| 13 | string $patternPrefix, |
| 14 | \Closure $createClosure, |
| 15 | string $namePrefix = '', |
| 16 | ): void; |
| 17 | |
| 18 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 19 | public function any(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 20 | |
| 21 | /** |
| 22 | * @param array<array-key, string> $methods |
| 23 | * @param callable|list{string, string}|non-empty-string $view |
| 24 | */ |
| 25 | public function map( |
| 26 | array $methods, |
| 27 | string $pattern, |
| 28 | callable|array|string $view, |
| 29 | string $name = '', |
| 30 | ): Route; |
| 31 | |
| 32 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 33 | public function get(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 34 | |
| 35 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 36 | public function post(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 37 | |
| 38 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 39 | public function put(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 40 | |
| 41 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 42 | public function patch(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 43 | |
| 44 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 45 | public function delete(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 46 | |
| 47 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 48 | public function head(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 49 | |
| 50 | /** @param callable|list{string, string}|non-empty-string $view */ |
| 51 | public function options(string $pattern, callable|array|string $view, string $name = ''): Route; |
| 52 | } |
Below are the source code lines that represent each code path as identified by Xdebug. Please note a path is not
necessarily coterminous with a line, a line may contain multiple paths and therefore show up more than once.
Please also be aware that some paths may include implicit rather than explicit branches, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.