$defaultCasters
$defaultCasters
AbstractCloner implements a generic caster mechanism for objects and resources.
addCasters(callable[] $casters) : mixed
Adds casters for resources and objects.
Maps resources or objects types to a callback.
Types are in the key, with a callable caster for value.
Resource types are to be prefixed with a :
,
see e.g. static::$defaultCasters.
callable[] | $casters | A map of casters |
cloneVar(mixed $var, int $filter) : \Symfony\Component\VarDumper\Cloner\Data
Clones a PHP variable.
mixed | $var | Any PHP variable |
int | $filter | A bit field of Caster::EXCLUDE_* constants |
The cloned variable represented by a Data object
castObject(\Symfony\Component\VarDumper\Cloner\Stub $stub, bool $isNested) : array
Casts an object to an array representation.
\Symfony\Component\VarDumper\Cloner\Stub | $stub | |
bool | $isNested | True if the object is nested in the dumped structure |
The object casted as array
castResource(\Symfony\Component\VarDumper\Cloner\Stub $stub, bool $isNested) : array
Casts a resource to an array representation.
\Symfony\Component\VarDumper\Cloner\Stub | $stub | |
bool | $isNested | True if the object is nested in the dumped structure |
The resource casted as array