class XmlFormatter implements FormatterInterface, ValidDataTypesInterface (View source)

Display a table of data with the Symfony Table class.

This formatter takes data of either the RowsOfFields or PropertyList data type. Tables can be rendered with the rows running either vertically (the normal orientation) or horizontally. By default, associative lists will be displayed as two columns, with the key in the first column and the value in the second column.

Traits

Provides a default implementation of isValidDataType.

Methods

validDataTypes()

Return the list of data types acceptable to this formatter

isValidDataType(ReflectionClass $dataType)

Return the list of data types acceptable to this formatter

__construct()

No description

mixed
validate(mixed $structuredData)

No description

write(OutputInterface $output, $dom, FormatterOptions $options)

No description

Details

ReflectionClass[] validDataTypes()

Return the list of data types acceptable to this formatter

Return Value

ReflectionClass[]

isValidDataType(ReflectionClass $dataType)

Return the list of data types acceptable to this formatter

Parameters

ReflectionClass $dataType

__construct()

No description

mixed validate(mixed $structuredData)

No description

Parameters

mixed $structuredData

Data to validate

Return Value

mixed

write(OutputInterface $output, $dom, FormatterOptions $options)

No description

Parameters

OutputInterface $output
$dom
FormatterOptions $options