1 | <?php |
||
15 | class Cloner implements ClonerInterface |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @var ClonerManagerInterface |
||
20 | */ |
||
21 | private $clonerManager; |
||
22 | |||
23 | /** |
||
24 | * @var Options\ClonerOptions |
||
25 | */ |
||
26 | private $options; |
||
27 | |||
28 | /** |
||
29 | * Cloner constructor. |
||
30 | * |
||
31 | * @param ClonerInterface $clonerManager |
||
32 | * @param Options\ClonerOptions $options |
||
33 | */ |
||
34 | public function __construct(ClonerInterface $clonerManager, Options\ClonerOptions $options) |
||
39 | |||
40 | /** |
||
41 | * @param mixed |
||
42 | * |
||
43 | * @return mixed |
||
44 | * @throws \Nnx\Cloner\Exception\InvalidArgumentException |
||
45 | * @throws \Nnx\Cloner\Exception\SetterNotFoundException |
||
46 | */ |
||
47 | public function cloneObject($object) |
||
70 | |||
71 | /** |
||
72 | * @param mixed $object |
||
73 | * @param string $relationName |
||
74 | * @param Options\Cloner\RelationOptions $options |
||
75 | * |
||
76 | * @return mixed |
||
77 | * @throws \Nnx\Cloner\Exception\GetterNotFoundException |
||
78 | */ |
||
79 | protected function handleRelation($object, $relationName, Options\Cloner\RelationOptions $options) |
||
107 | |||
108 | /** |
||
109 | * @param string $clonerName |
||
110 | * @param mixed $relationData |
||
111 | * |
||
112 | * @return mixed |
||
113 | */ |
||
114 | protected function getRelationClonerResult($clonerName, $relationData) |
||
119 | |||
120 | /** |
||
121 | * @param mixed $object Исходный объект |
||
122 | * @param mixed $cloneObject Склонированный объект |
||
123 | */ |
||
124 | protected function afterClone($object, $cloneObject) |
||
127 | |||
128 | /** |
||
129 | * @return ClonerManagerInterface |
||
130 | */ |
||
131 | protected function getClonerManager() |
||
135 | |||
136 | /** |
||
137 | * @return Options\ClonerOptions |
||
138 | */ |
||
139 | protected function getOptions() |
||
143 | } |
||
144 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..