Documentation

Printer
in package

Pretty-print a listing of routes connected to a mapper.

Table of Contents

$_mapper  : Mapper
__construct()  : mixed
Constructor.
getRoutes()  : array<string|int, mixed>
Analyze the mapper and return an array of data about the routes connected to the mapper.
printRoutes()  : void
Pretty-print a listing of the routes connected to the mapper.

Properties

Methods

__construct()

Constructor.

public __construct(Mapper $mapper) : mixed
Parameters
$mapper : Mapper

Mapper to analyze for printing

Return values
mixed

getRoutes()

Analyze the mapper and return an array of data about the routes connected to the mapper.

public getRoutes() : array<string|int, mixed>
Return values
array<string|int, mixed>

printRoutes()

Pretty-print a listing of the routes connected to the mapper.

public printRoutes([resource|null $stream = null ][, string|null $eol = PHP_EOL ]) : void
Parameters
$stream : resource|null = null

Output stream resource for printing (optional)

$eol : string|null = PHP_EOL

Line ending (optional)

Return values
void

Search results