Documentation

Debug
in package

FinalYes

Static class containing most used debug methods.

Tags
deprecated

The Debug class is deprecated, please use symfony/var-dumper instead.

link
www.doctrine-project.org

Table of Contents

Methods

dump()  : string
Prints a dump of the public, protected and private properties of $var.
export()  : mixed
toString()  : string
Returns a string representation of an object.
__construct()  : mixed
Private constructor (prevents instantiation).
fillReturnWithClassAttributes()  : mixed
Fill the $return variable with class attributes Based on obj2array function from {@see https://secure.php.net/manual/en/function.get-object-vars.php#47075}

Methods

dump()

Prints a dump of the public, protected and private properties of $var.

public static dump(mixed $var[, int $maxDepth = 2 ][, bool $stripTags = true ][, bool $echo = true ]) : string
Parameters
$var : mixed

The variable to dump.

$maxDepth : int = 2

The maximum nesting level for object properties.

$stripTags : bool = true

Whether output should strip HTML tags.

$echo : bool = true

Send the dumped value to the output buffer

Tags
link
https://xdebug.org/
Return values
string

export()

public static export(mixed $var, int $maxDepth) : mixed
Parameters
$var : mixed
$maxDepth : int

toString()

Returns a string representation of an object.

public static toString(object $obj) : string
Parameters
$obj : object
Return values
string

__construct()

Private constructor (prevents instantiation).

private __construct() : mixed

fillReturnWithClassAttributes()

Fill the $return variable with class attributes Based on obj2array function from {@see https://secure.php.net/manual/en/function.get-object-vars.php#47075}

private static fillReturnWithClassAttributes(object $var, stdClass $return, int $maxDepth) : mixed
Parameters
$var : object
$return : stdClass
$maxDepth : int

        
On this page

Search results