FormatterTrait
trait FormatterTrait (View source)
Properties
protected FormatterOptions | $formatterOptions |
Methods
void
writeFormattedOutput(InputInterface $input, OutputInterface $output, $data)
Filter, format, and write to the output
mixed
alterResult($result, InputInterface $input)
No description
wrapFilteredResult($data, $source)
If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.
getFormatterOptions()
No description
void
setFormatterOptions(FormatterOptions $formatterOptions)
Public because is used by FormatterListener.
mixed
getPrivatePropValue(mixed $object, $name)
No description
Details
protected void
writeFormattedOutput(InputInterface $input, OutputInterface $output, $data)
Filter, format, and write to the output
protected mixed
alterResult($result, InputInterface $input)
No description
protected
wrapFilteredResult($data, $source)
If the source data was wrapped in a marker class such as RowsOfFields, then re-apply the wrapper.
protected FormatterOptions
getFormatterOptions()
No description
void
setFormatterOptions(FormatterOptions $formatterOptions)
Public because is used by FormatterListener.
protected mixed
getPrivatePropValue(mixed $object, $name)
No description