Cloner\VarCloner (Component\VarDumper)
Symfony\Component\VarDumper\Cloner\VarCloner
class VarCloner extends AbstractCloner
Properties
static | $defaultCasters |
Methods
__construct(array $casters = null) | from AbstractCloner | |
addCasters(array $casters) Adds casters for resources and objects. | from AbstractCloner | |
setMaxItems(int $maxItems) Sets the maximum number of items to clone past the first level in nested structures. | from AbstractCloner | |
setMaxString(int $maxString) Sets the maximum cloned length for strings. | from AbstractCloner | |
Data | cloneVar(mixed $var, int $filter) Clones a PHP variable. | from AbstractCloner |
Details
public __construct(array $casters = null)
public addCasters(array $casters)
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.
public setMaxItems(int $maxItems)
Sets the maximum number of items to clone past the first level in nested structures.
public setMaxString(int $maxString)
Sets the maximum cloned length for strings.
public Data cloneVar(mixed $var, int $filter)
Clones a PHP variable.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/VarDumper/Cloner/VarCloner.html