1 | <?php |
||
17 | class Cloner implements ClonerInterface |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var ClonerManagerInterface |
||
22 | */ |
||
23 | private $clonerManager; |
||
24 | |||
25 | /** |
||
26 | * @var Options\ClonerOptions |
||
27 | */ |
||
28 | private $options; |
||
29 | |||
30 | /** |
||
31 | * Cloner constructor. |
||
32 | * |
||
33 | * @param ClonerManagerInterface $clonerManager |
||
34 | * @param Options\ClonerOptions $options |
||
35 | */ |
||
36 | public function __construct(ClonerManagerInterface $clonerManager, Options\ClonerOptions $options) |
||
41 | |||
42 | /** |
||
43 | * @param mixed |
||
44 | * |
||
45 | * @return mixed Объект для обработки |
||
46 | */ |
||
47 | public function handle($object) |
||
59 | |||
60 | /** |
||
61 | * @param mixed $object |
||
62 | * @param string $relationName |
||
63 | * @param Options\Cloner\RelationOptions $options |
||
64 | * |
||
65 | * @return mixed |
||
66 | */ |
||
67 | protected function handleRelation($object, $relationName, Options\Cloner\RelationOptions $options) |
||
91 | |||
92 | /** |
||
93 | * @param string $clonerName |
||
94 | * @param mixed $relationData |
||
95 | * |
||
96 | * @return mixed |
||
97 | */ |
||
98 | protected function getRelationClonerResult($clonerName, $relationData) |
||
103 | |||
104 | /** |
||
105 | * @param mixed $object объект для обработки |
||
106 | */ |
||
107 | protected function afterClone($object) |
||
110 | |||
111 | /** |
||
112 | * @return ClonerManagerInterface |
||
113 | */ |
||
114 | protected function getClonerManager() |
||
118 | |||
119 | /** |
||
120 | * @return Options\ClonerOptions |
||
121 | */ |
||
122 | protected function getOptions() |
||
126 | } |
||
127 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.