Debug
in package
FinalYes
Static class containing most used debug methods.
Tags
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
Return values
stringexport()
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