class SectionsFormatter implements FormatterInterface, ValidDataTypesInterface, RenderDataInterface (View source)

Display sections of data.

This formatter takes data in the RowsOfFields data type. Each row represents one section; the data in each section is rendered in 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

renderData($originalData, $restructuredData, FormatterOptions $options)

No description

renderEachCell($originalData, $restructuredData, FormatterOptions $options)

No description

mixed
validate(mixed $structuredData)

No description

write(OutputInterface $output, $tableTransformer, 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

renderData($originalData, $restructuredData, FormatterOptions $options)

No description

Parameters

$originalData
$restructuredData
FormatterOptions $options

protected renderEachCell($originalData, $restructuredData, FormatterOptions $options)

No description

Parameters

$originalData
$restructuredData
FormatterOptions $options

mixed validate(mixed $structuredData)

No description

Parameters

mixed $structuredData

Data to validate

Return Value

mixed

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

No description

Parameters

OutputInterface $output
$tableTransformer
FormatterOptions $options