VarCloner
class VarCloner extends AbstractCloner
Properties
static | $defaultCasters | from AbstractCloner |
Methods
setMaxItems(int $maxItems)
Sets the maximum number of items to clone past the first level in nested structures.
from AbstractCloner
Details
in AbstractCloner at line line 132
__construct(array $casters = null)
in AbstractCloner at line line 151
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.
in AbstractCloner at line line 163
setMaxItems(int $maxItems)
Sets the maximum number of items to clone past the first level in nested structures.
in AbstractCloner at line line 173
setMaxString(int $maxString)
Sets the maximum cloned length for strings.
in AbstractCloner at line line 186
Data
cloneVar(mixed $var, int $filter)
Clones a PHP variable.