1 | <?php |
||
21 | class RoutesCollection extends Collection |
||
22 | { |
||
23 | /** |
||
24 | * Create instance of Route and returns it. |
||
25 | * Also looks for duplicated names. |
||
26 | * |
||
27 | * @param string $name Name of route |
||
28 | * @return Route |
||
29 | */ |
||
30 | public function route($name) |
||
40 | |||
41 | /** |
||
42 | * Groups routes by domain keeping the order |
||
43 | * @mixed RoutesCollection |
||
44 | */ |
||
45 | public function groupByDomain() |
||
67 | |||
68 | /** |
||
69 | * Checks whether routes in collection has domain condition. |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function hasDomain() |
||
80 | |||
81 | /** |
||
82 | * Checks whether routes in collection has method condition. |
||
83 | * @return bool |
||
84 | */ |
||
85 | public function hasMethod() |
||
93 | |||
94 | /** |
||
95 | * Checks whether routes in collection has https condition. |
||
96 | * @return bool |
||
97 | */ |
||
98 | public function hasHttps() |
||
106 | } |
||
107 |