class RouteBuilder (View source)

Properties

protected $router
protected $route

Methods

__construct(Router $router, Route $route)

RouteBuilder constructor.

setName(mixed $name)

No description

addMiddleware($middlewareClassName, $priority = 10)

No description

getRoute()

No description

getRouter()

No description

__call($method, $arguments)

No description

Details

__construct(Router $router, Route $route)

RouteBuilder constructor.

Parameters

Router $router
Route $route

setName(mixed $name)

Parameters

mixed $name

addMiddleware($middlewareClassName, $priority = 10)

Parameters

$middlewareClassName
$priority

Route getRoute()

Return Value

Route

Router getRouter()

Return Value

Router

__call($method, $arguments)

Parameters

$method
$arguments