RoutingCollector
extends Collector
in package
Class RoutingCollector.
Table of Contents
Properties
- $activities : array<int, array<string, mixed>>
- $data : array<string|int, mixed>
- $name : string
- $router : Router
Methods
- __construct() : mixed
- addData() : static
- getActivities() : array<int, array<string, mixed>>
- getContents() : string
- getData() : array<string|int, mixed>
- getName() : string
- getSafeName() : string
- hasData() : bool
- setRouter() : static
- getRoutes() : array<string|int, array<string, mixed>>
- renderMatchedRoute() : string
- renderRouteCollections() : string
- renderRouteCollectionsTable() : string
- renderRouteCollectionTime() : string
- toCodeBrackets() : string
Properties
$activities
protected
array<int, array<string, mixed>>
$activities
= []
$data
protected
array<string|int, mixed>
$data
= []
$name
protected
string
$name
$router
protected
Router
$router
Methods
__construct()
public
__construct([string $name = 'default' ]) : mixed
Parameters
- $name : string = 'default'
addData()
public
addData(array<string|int, mixed> $data) : static
Parameters
- $data : array<string|int, mixed>
Return values
staticgetActivities()
public
getActivities() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>>getContents()
public
getContents() : string
Return values
stringgetData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getName()
public
getName() : string
Return values
stringgetSafeName()
public
getSafeName() : string
Return values
stringhasData()
public
hasData() : bool
Return values
boolsetRouter()
public
setRouter(Router $router) : static
Parameters
- $router : Router
Return values
staticgetRoutes()
protected
getRoutes(RouteCollection $collection) : array<string|int, array<string, mixed>>
Parameters
- $collection : RouteCollection
Return values
array<string|int, array<string, mixed>>renderMatchedRoute()
protected
renderMatchedRoute() : string
Return values
stringrenderRouteCollections()
protected
renderRouteCollections() : string
Return values
stringrenderRouteCollectionsTable()
protected
renderRouteCollectionsTable(RouteCollection $collection) : string
Parameters
- $collection : RouteCollection
Return values
stringrenderRouteCollectionTime()
protected
renderRouteCollectionTime(RouteCollection $collection) : string
Parameters
- $collection : RouteCollection
Return values
stringtoCodeBrackets()
protected
toCodeBrackets(string $str) : string
Parameters
- $str : string