| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 19 | class RouteCollection implements RouteCollectionInterface |
||
| 20 | { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * The collection routes |
||
| 24 | * |
||
| 25 | * @var RouteInterface[] |
||
| 26 | */ |
||
| 27 | private $routes; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Constructor of the class |
||
| 31 | * |
||
| 32 | * @param RouteInterface ...$routes |
||
| 33 | */ |
||
| 34 | 44 | public function __construct(RouteInterface ...$routes) |
|
| 35 | { |
||
| 36 | 44 | $this->routes = $routes; |
|
| 37 | 44 | } |
|
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritDoc} |
||
| 41 | */ |
||
| 42 | 33 | public function add(RouteInterface ...$routes) : void |
|
| 46 | } |
||
| 47 | 33 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritDoc} |
||
| 51 | */ |
||
| 52 | 16 | public function all() : array |
|
| 57 |