FormatterFactory
in package
Factory to create FormatterManager based on requested names.
Tags
Table of Contents
Properties
- $formaters : array<string|int, mixed>
Methods
- __construct() : mixed
- create() : FormatterManager
- Create a FormatterManager based on formatter specifications with output destinations.
- getAvailableFormatters() : array<string|int, mixed>
- Get the names of all available formatters.
Properties
$formaters
private
array<string|int, mixed>
$formaters
Methods
__construct()
public
__construct() : mixed
create()
Create a FormatterManager based on formatter specifications with output destinations.
public
create([array<string, string|null> $formatterSpecs = null ]) : FormatterManager
Parameters
- $formatterSpecs : array<string, string|null> = null
-
Array of formatter name => output path
Tags
Return values
FormatterManagergetAvailableFormatters()
Get the names of all available formatters.
public
getAvailableFormatters() : array<string|int, mixed>