Documentation

FormatterFactory
in package

Factory to create FormatterManager based on requested names.

Tags
phpstan-import-type

OutputFormatters from FormatterManager

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

Methods

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
throws
RuntimeException

on invalid formatter names or file creation errors

Return values
FormatterManager

getAvailableFormatters()

Get the names of all available formatters.

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

        
On this page

Search results