DumpableInterface

An interface to define if an object is dumpable.

since

1.0

Methods

dump

Dumps the object properties into a stdClass object, recursively if appropriate.

dump(integer $depth = 3, \SplObjectStorage $dumped = null) : \stdClass
since

1.0

Arguments

$depth

integerThe maximum depth of recursion. For example, a depth of 0 will return a stdClass with all the properties in native form. A depth of 1 will recurse into the first level of properties only.

$dumped

\SplObjectStorageAn array of already serialized objects that is used to avoid infinite loops.

Response

\stdClassThe data properties as a simple PHP stdClass object.