Context tracking for Debugger::exportVar()
This class is used by Debugger to track element depth, and prevent cyclic references from being traversed multiple times.
Constructor
Get the reference ID for an object.
Check whether an object has been seen before.
Get the remaining depth levels
Return a clone with increased depth.
__construct(int $maxDepth)
Constructor
int $maxDepth The desired depth of dump output.
getReferenceId(object $object): int
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.
inthasReference(object $object): bool
Check whether an object has been seen before.
object $object The object to get a reference for.
boolremainingDepth(): int
Get the remaining depth levels
intwithAddedDepth(): static
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.4/class-Cake.Error.Debug.DebugContext.html