class StaticPrefixCollection

Prefix tree of routes preserving routes order.

Methods

__construct($prefix = '')

No description

getPrefix()

No description

getItems()

No description

addRoute(string $prefix, mixed $route)

Adds a route to a group.

optimizeGroups()

Optimizes the tree by inlining items from groups with less than 3 items.

Details

at line 38
__construct($prefix = '')

Parameters

$prefix

at line 43
getPrefix()

at line 51
mixed[]|StaticPrefixCollection[] getItems()

Return Value

mixed[]|StaticPrefixCollection[]

at line 62
addRoute(string $prefix, mixed $route)

Adds a route to a group.

Parameters

string $prefix
mixed $route

at line 179
optimizeGroups()

Optimizes the tree by inlining items from groups with less than 3 items.