1 | <?php |
||
9 | class CollectionRoute extends Collection |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @param string $name |
||
14 | * @param Route $route |
||
15 | * @param int $priority |
||
16 | * |
||
17 | * @return $this |
||
18 | * |
||
19 | * @throws DuplicateKeyException |
||
20 | */ |
||
21 | 12 | public function add(string $name, Route $route, int $priority = 50): self |
|
25 | |||
26 | 1 | public function remove(string $name): self |
|
30 | |||
31 | /** |
||
32 | * @return Route[] |
||
33 | */ |
||
34 | 11 | public function getRoutes(): array |
|
38 | } |
||
39 |