final class Exporter extends Exporter

internal  This class is not covered by the backward compatibility promise
 

An exporter that handles ValuesInterface in a special way.

Methods

string
recursiveExport(mixed $value, int $indentation, Context $processed = null)

Recursive implementation of export.

string
shortenedExport(mixed $value)

Exports a value into a single-line string.

Details

at line 37
string recursiveExport(mixed $value, int $indentation, Context $processed = null)

Recursive implementation of export.

Parameters

mixed $value

The value to export

int $indentation

The indentation level of the 2nd+ line

Context $processed

Previously processed objects

Return Value

string

Exceptions

InvalidArgumentException

at line 59
string shortenedExport(mixed $value)

Exports a value into a single-line string.

The output of this method is similar to the output of SebastianBergmann\Exporter\Exporter::export().

Newlines are replaced by the visible string '\n'. Contents of arrays and objects (if any) are replaced by '...'.

Parameters

mixed $value

Return Value

string