Метод |
Описание |
|
__construct ( ) |
Base constructor. |
|
add ( string $name, Route $route ) |
Adds a Route to the end of current collection. |
|
addOption ( string $name, array $attributes ) |
Adds an option for all the routes within the collection. |
|
all ( ) : array |
Returns an array of all routes within the collection. |
|
count ( ) : integer |
Returns the number of routes within the current collection. |
|
get ( string $name ) : Route |
Returns the route under the given name. |
|
prepend ( string $name, Route $route ) |
Adds a Route to the beginning of current collection. |
|
remove ( string $name ) |
Removes the route under the given name. |
|
setHost ( string $host ) |
Sets the host filter to all routes within the collection. |
|
setMethods ( array | string $methods ) |
Sets the method filter to all routes within the collection. |
|
setSchemes ( array | string $schemes ) |
Sets the scheme filter to all routes within the collection. |
|