- final
Cloneable
Instantiable
Methods |
public
__construct
(
$useCloneMethod
=
false
)
|
public
addFilter
(
DeepCopy |
public
addTypeFilter
(
DeepCopy |
public
copy
(
$object
) Deep copies the given object.
|
public
prependFilter
(
DeepCopy |
public
skipUncloneable
(
$skipUncloneable
=
true
) If enabled, will not throw an exception when coming across an uncloneable property.
|
Properties |
private
$filters
Filters to apply.
|
private
$hashMap
|
private
$skipUncloneable
|
private
$typeFilters
Type Filters to apply.
|
private
$useCloneMethod
|
Methods |
private
copyArray
(
array
$array
) Copy an array
|
private
copyObject
(
$object
) Copies an object.
|
private copyObjectProperty ( $object , ReflectionProperty $property ) |
private
first
(
array
$elements
,
callable
$predicate
) Returns first element that matches predicate,
|
private
getFirstMatchedTypeFilter
(
array
$filterRecords
,
$var
) Returns first filter that matches variable,
|
private recursiveCopy ( $var ) |