file-fetcher
Public Member Functions | List of all members
DeepCopy\DeepCopy Class Reference
Inheritance diagram for DeepCopy\DeepCopy:
DeepCopyTest\TypeFilter\Spl\FakeDeepCopy

Detailed Description

@final

Public Member Functions

 __construct ($useCloneMethod=false)
 
 skipUncloneable ($skipUncloneable=true)
 
 copy ($object)
 
 addFilter (Filter $filter, Matcher $matcher)
 
 prependFilter (Filter $filter, Matcher $matcher)
 
 addTypeFilter (TypeFilter $filter, TypeMatcher $matcher)
 

Constructor & Destructor Documentation

◆ __construct()

DeepCopy\DeepCopy::__construct (   $useCloneMethod = false)
Parameters
bool$useCloneMethodIf set to true, when an object implements the __clone() function, it will be used instead of the regular deep cloning.

Member Function Documentation

◆ addFilter()

DeepCopy\DeepCopy::addFilter ( Filter  $filter,
Matcher  $matcher 
)

◆ addTypeFilter()

DeepCopy\DeepCopy::addTypeFilter ( TypeFilter  $filter,
TypeMatcher  $matcher 
)

◆ copy()

DeepCopy\DeepCopy::copy (   $object)

Deep copies the given object.

Parameters
mixed$object
Returns
mixed

Reimplemented in DeepCopyTest\TypeFilter\Spl\FakeDeepCopy.

◆ prependFilter()

DeepCopy\DeepCopy::prependFilter ( Filter  $filter,
Matcher  $matcher 
)

◆ skipUncloneable()

DeepCopy\DeepCopy::skipUncloneable (   $skipUncloneable = true)

If enabled, will not throw an exception when coming across an uncloneable property.

Parameters
$skipUncloneable
Returns
$this

The documentation for this class was generated from the following file: