Context tracking for Debugger::exportVar()
This class is used by Debugger to track element depth, and prevent cyclic references from being traversed multiple times.
__construct(int $maxDepth)
Constructor
int
$maxDepth The desired depth of dump output.
getReferenceId(object $object)
Get the reference ID for an object.
If this object does not exist in the reference storage, it will be added and the id will be returned.
object
$object The object to get a reference for.
int
hasReference(object $object)
Check whether an object has been seen before.
object
$object The object to get a reference for.
bool
remainingDepth()
Get the remaining depth levels
int
withAddedDepth()
Return a clone with increased depth.
static
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/class-Cake.Error.Debug.DebugContext.html