PHP Class Doctrine\Common\Util\Debug

Since: 2.0
Author: Guilherme Blanco ([email protected])
Author: Jonathan Wage ([email protected])
Author: Roman Borschel ([email protected])
Author: Giorgio Sironi ([email protected])
Mostrar archivo Open project: doctrine/common Class Usage Examples

Public Methods

Method Description
dump ( mixed $var, integer $maxDepth = 2, boolean $stripTags = true, boolean $echo = true ) : string Prints a dump of the public, protected and private properties of $var.
export ( mixed $var, integer $maxDepth ) : mixed
toString ( object $obj ) : string Returns a string representation of an object.

Private Methods

Method Description
__construct ( ) Private constructor (prevents instantiation).
fillReturnWithClassAttributes ( object $var, stdClass $return, integer $maxDepth ) : mixed Fill the $return variable with class attributes

Method Details

dump() public static method

Prints a dump of the public, protected and private properties of $var.
public static dump ( mixed $var, integer $maxDepth = 2, boolean $stripTags = true, boolean $echo = true ) : string
$var mixed The variable to dump.
$maxDepth integer The maximum nesting level for object properties.
$stripTags boolean Whether output should strip HTML tags.
$echo boolean Send the dumped value to the output buffer
return string

export() public static method

public static export ( mixed $var, integer $maxDepth ) : mixed
$var mixed
$maxDepth integer
return mixed

toString() public static method

Returns a string representation of an object.
public static toString ( object $obj ) : string
$obj object
return string