W3cubDocs

/Symfony 2.7

Symfony\Component\VarDumper\Dumper\AbstractDumper

abstract class AbstractDumper implements DataDumperInterface, DumperInterface

Abstract mechanism for dumping a Data object.

Properties

static $defaultOutput

Methods

__construct(callable|resource|string|null $output = null)
callable|resource|string setOutput(callable|resource|string $output)

Sets the output destination of the dumps.

string setIndentPad(string $pad)

Sets the indentation pad string.

dump(Data $data, callable|resource|string|null $output = null)

Dumps a Data object.

Details

public __construct(callable|resource|string|null $output = null)

Parameters

callable|resource|string|null $output A line dumper callable, an opened stream or an output path, defaults to static::$defaultOutput.

public callable|resource|string setOutput(callable|resource|string $output)

Sets the output destination of the dumps.

Parameters

callable|resource|string $output A line dumper callable, an opened stream or an output path.

Return Value

callable|resource|string The previous output destination.

public string setIndentPad(string $pad)

Sets the indentation pad string.

Parameters

string $pad A string the will be prepended to dumped lines, repeated by nesting level.

Return Value

string The indent pad.

public dump(Data $data, callable|resource|string|null $output = null)

Dumps a Data object.

Parameters

Data $data A Data object.
callable|resource|string|null $output A line dumper callable, an opened stream or an output path.

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Component/VarDumper/Dumper/AbstractDumper.html