interface FormatterInterface (View source)

Methods

write(OutputInterface $output, mixed $data, FormatterOptions $options)

Given structured data, apply appropriate formatting, and return a printable string.

Details

write(OutputInterface $output, mixed $data, FormatterOptions $options)

Given structured data, apply appropriate formatting, and return a printable string.

Parameters

OutputInterface $output
mixed $data

Structured data to format

FormatterOptions $options