class StaticPrefixCollection

Prefix tree of routes preserving routes order.

Methods

__construct(string $prefix = '/')

No description

string
getPrefix()

No description

array
getRoutes()

No description

addRoute(string $prefix, $route)

Adds a route to a group.

populateCollection(RouteCollection $routes)

Linearizes back a set of nested routes into a collection.

static 
handleError($type, $msg)

No description

Details

at line 43
__construct(string $prefix = '/')

Parameters

string $prefix

at line 48
string getPrefix()

Return Value

string

at line 56
array getRoutes()

Return Value

array

at line 66
addRoute(string $prefix, $route)

Adds a route to a group.

Parameters

string $prefix
$route

at line 129
RouteCollection populateCollection(RouteCollection $routes)

Linearizes back a set of nested routes into a collection.

Parameters

RouteCollection $routes

Return Value

RouteCollection

at line 198
static handleError($type, $msg)

Parameters

$type
$msg