\Anax\RouteCRouteBasic

A container for routes.

Summary

Methods
Properties
Constants
set()
match()
handle()
setName()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$name
$rule
$action
N/A

Properties

$name

$name : 

Properties

Type

$rule

$rule : 

Type

$action

$action : 

Type

Methods

set()

set(string  $rule, callable  $action) : $this

Set values for route.

Parameters

string $rule

for this route

callable $action

callable to implement a controller for the route

Returns

$this

match()

match(string  $query) : boolean

Check if the route matches a query

Parameters

string $query

to match against

Returns

boolean —

true if query matches the route

handle()

handle() : void

Handle the action for the route.

setName()

setName(string  $name) : $this

Set the name of the route.

Parameters

string $name

set a name for the route

Returns

$this