1 | <?php |
||
8 | class MethodCollection implements IteratorAggregate, \Countable |
||
9 | { |
||
10 | private $methods = []; |
||
11 | private $resources = []; |
||
12 | |||
13 | public function getIterator() |
||
17 | |||
18 | public function count() |
||
22 | |||
23 | public function add($name, Method $method) |
||
29 | |||
30 | public function all() |
||
34 | |||
35 | public function get($name) |
||
43 | |||
44 | /** |
||
45 | * Removes a route or an array of routes by name from the collection. |
||
46 | * |
||
47 | * @param string|array $name The route name or an array of route names |
||
48 | */ |
||
49 | public function remove($name) |
||
55 | |||
56 | public function addCollection(MethodCollection $collection) |
||
67 | |||
68 | public function getResources() |
||
72 | |||
73 | public function addResource(ResourceInterface $resource) |
||
77 | } |