| 1 | <?php |
||
| 17 | class StringFormatter implements FormatterInterface, ValidationInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | 1 | * @inheritdoc |
|
| 21 | */ |
||
| 22 | 1 | public function write(OutputInterface $output, $data, FormatterOptions $options) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Do not return any valid data types -- this formatter will never show up |
||
| 31 | * in a list of valid formats. |
||
| 32 | */ |
||
| 33 | public function validDataTypes() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Always validate any data, though. This format will never |
||
| 40 | * cause an error if it is selected for an incompatible data type; at |
||
| 41 | * worse, it simply does not print any data. |
||
| 42 | */ |
||
| 43 | public function validate($structuredData) |
||
| 47 | } |
||
| 48 |