class TrieMatcher extends AbstractMatcher (View source)

The TrieMatcher class.

Methods

string
build(Route $route, array $data = array())

build

Route|false
match(string $route, string $method = 'GET', array $options = array())

Match routes.

Route|false
matchRoute(string $route, Route $routeItem)

Match routes.

setRoutes(array $routes)

Set Routes

array
getRouteMaps()

Method to get property RouteMaps

setRouteMaps(array $routeMaps)

Method to set property routeMaps

int
getCount()

Method to get property Count

boolean
getDebug()

Method to get property Debug

setDebug(boolean $debug)

Method to set property debug

void
clear()

clear

array
getTree()

Method to get property Tree

setTree(array $tree)

Method to set property tree

Details

string build(Route $route, array $data = array())

build

Parameters

Route $route
array $data

Return Value

string

at line line 59
Route|false match(string $route, string $method = 'GET', array $options = array())

Match routes.

Parameters

string $route
string $method
array $options

Return Value

Route|false

Route|false matchRoute(string $route, Route $routeItem)

Match routes.

Parameters

string $route
Route $routeItem

Return Value

Route|false

MatcherInterface setRoutes(array $routes)

Set Routes

Parameters

array $routes

Return Value

MatcherInterface

array getRouteMaps()

Method to get property RouteMaps

Return Value

array

AbstractMatcher setRouteMaps(array $routeMaps)

Method to set property routeMaps

Parameters

array $routeMaps

Return Value

AbstractMatcher Return self to support chaining.

int getCount()

Method to get property Count

Return Value

int

boolean getDebug()

Method to get property Debug

Return Value

boolean

AbstractMatcher setDebug(boolean $debug)

Method to set property debug

Parameters

boolean $debug

Return Value

AbstractMatcher Return self to support chaining.

at line line 227
void clear()

clear

Return Value

void

at line line 237
array getTree()

Method to get property Tree

Return Value

array

at line line 249
TrieMatcher setTree(array $tree)

Method to set property tree

Parameters

array $tree

Return Value

TrieMatcher Return self to support chaining.