class VarDumpFormatter implements FormatterInterface, ValidationInterface (View source)

Var_dump formatter

Run provided data through Symfony VarDumper component.

Methods

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

No description

isValidDataType(ReflectionClass $dataType)

Return true if the specified format is valid for use with this formatter.

mixed
validate(mixed $structuredData)

Throw an IncompatibleDataException if the provided data cannot be processed by this formatter. Return the source data if it is valid. The data may be encapsulated or converted if necessary.

Details

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

No description

Parameters

OutputInterface $output
mixed $data

Structured data to format

FormatterOptions $options

isValidDataType(ReflectionClass $dataType)

Return true if the specified format is valid for use with this formatter.

Parameters

ReflectionClass $dataType

mixed validate(mixed $structuredData)

Throw an IncompatibleDataException if the provided data cannot be processed by this formatter. Return the source data if it is valid. The data may be encapsulated or converted if necessary.

Parameters

mixed $structuredData

Data to validate

Return Value

mixed