1 | <?php |
||
17 | class RouteCollection extends Collection |
||
18 | { |
||
19 | |||
20 | const COLLECTION_NAME = 'routes'; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * RouteMatchSpecificationCollection constructor |
||
25 | * |
||
26 | * @throws InvalidInterfaceException |
||
27 | */ |
||
28 | public function __construct() |
||
35 | |||
36 | |||
37 | /** |
||
38 | * getIdentifier |
||
39 | * Overrides EventEspresso\core\services\collections\Collection::getIdentifier() |
||
40 | * If no $identifier is supplied, then the fully qualified class name is used |
||
41 | * |
||
42 | * @param $object |
||
43 | * @param mixed $identifier |
||
44 | * @return bool |
||
45 | */ |
||
46 | public function getIdentifier($object, $identifier = null) |
||
52 | |||
53 | |||
54 | /** |
||
55 | * finds and returns all Routes that have yet to be handled |
||
56 | * |
||
57 | * @return RouteInterface[] |
||
58 | */ |
||
59 | public function getRoutesForCurrentRequest() |
||
74 | |||
75 | |||
76 | /** |
||
77 | * calls RouteInterface::handleRequest() on all Routes that |
||
78 | * - match current request |
||
79 | * - have yet to be handled |
||
80 | * |
||
81 | * @return void |
||
82 | */ |
||
83 | public function handleRoutesForCurrentRequest() |
||
92 | } |
||
93 |