class Route implements RouteInterface, Arrayable

This class presents "routes" section from config

Traits

Methods

void
setListener(Listener $listener)

Setup new listener

array
getListeners()

Get listeners linked to object;

bool
hasListeners()

Check if listeners are empty or not

__construct(string $_name, $data = [], bool $single = false)

No description

string
getName()

No description

void
setRouteBlocks(array $routeBlocks)

No description

array
getRouteBlocks()

No description

array
toArray()

Get the instance as an array.

string|false
toJson()

No description

Details

in HasListeners at line 17
void setListener(Listener $listener)

Setup new listener

Parameters

Listener $listener

Return Value

void

in HasListeners at line 27
array getListeners()

Get listeners linked to object;

Return Value

array

in HasListeners at line 37
bool hasListeners()

Check if listeners are empty or not

Return Value

bool

at line 29
__construct(string $_name, $data = [], bool $single = false)

No description

Parameters

string $_name
$data
bool $single

at line 48
string getName()

No description

Return Value

string

at line 56
void setRouteBlocks(array $routeBlocks)

No description

Parameters

array $routeBlocks

Return Value

void

at line 64
array getRouteBlocks()

No description

Return Value

array

at line 69
array toArray()

Get the instance as an array.

Return Value

array

at line 77
string|false toJson()

No description

Return Value

string|false