PHP Class Autarky\Routing\Events\BeforeEvent

Inheritance: extends AbstractRouteEvent
Show file Open project: autarky/framework

Protected Properties

Property Type Description
$controller callable | null
$response mixed

Public Methods

Method Description
getController ( ) : callable | null Get the dispatch's controller.
getResponse ( ) : mixed Get the response.
setController ( callable $controller ) Set the dispatch's controller. This overrides the original route's controller.
setResponse ( mixed $response ) Set the response.

Method Details

getController() public method

Get the dispatch's controller.
public getController ( ) : callable | null
return callable | null

getResponse() public method

Get the response.
public getResponse ( ) : mixed
return mixed

setController() public method

Set the dispatch's controller. This overrides the original route's controller.
public setController ( callable $controller )
$controller callable

setResponse() public method

Set the response.
public setResponse ( mixed $response )
$response mixed

Property Details

$controller protected property

protected callable|null $controller
return callable | null

$response protected property

protected mixed $response
return mixed