1 | <?php |
||
11 | class UnitOfWork |
||
12 | { |
||
13 | /** |
||
14 | * mapping |
||
15 | * |
||
16 | * @var Mapping |
||
17 | * @access private |
||
18 | */ |
||
19 | private $mapping; |
||
20 | |||
21 | /** |
||
22 | * storage for every entity retrieved |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | private $storage; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | */ |
||
31 | public function __construct(Mapping $mapping) |
||
36 | |||
37 | /** |
||
38 | * getDirtyData |
||
39 | * |
||
40 | * @param array $newSerializedModel |
||
41 | * @param array $oldSerializedModel |
||
42 | * @access public |
||
43 | * @return array |
||
44 | */ |
||
45 | public function getDirtyData(array $newSerializedModel, array $oldSerializedModel, ClassMetadata $classMetadata) |
||
49 | |||
50 | /** |
||
51 | * registerClean |
||
52 | * |
||
53 | * @param string $id |
||
54 | * @param object $entity |
||
55 | * @access public |
||
56 | * @return UnitOfWork |
||
57 | */ |
||
58 | public function registerClean($id, $entity) |
||
67 | |||
68 | /** |
||
69 | * getDirtyEntity |
||
70 | * |
||
71 | * @param string $id |
||
72 | * @access public |
||
73 | * @return mixed |
||
74 | */ |
||
75 | public function getDirtyEntity($id) |
||
82 | |||
83 | /** |
||
84 | * clear |
||
85 | * |
||
86 | * @param string $id |
||
87 | * @access public |
||
88 | * @return UnitOfWork |
||
89 | */ |
||
90 | public function clear($id) |
||
95 | |||
96 | /** |
||
97 | * getDirtyFields |
||
98 | * |
||
99 | * @param array $newArrayModel |
||
|
|||
100 | * @param array $oldSerializedModel |
||
101 | * @access private |
||
102 | * @return array |
||
103 | */ |
||
104 | private function getDirtyFields(array $newSerializedModel, array $oldSerializedModel, ClassMetadata $classMetadata = null) |
||
141 | |||
142 | /** |
||
143 | * addIdentifiers |
||
144 | * |
||
145 | * @param array $newSerializedModel |
||
146 | * @param array $dirtyFields |
||
147 | * @access private |
||
148 | * @return array |
||
149 | */ |
||
150 | private function addIdentifiers($newSerializedModel, $dirtyFields, $idSerializedKey = null) |
||
162 | } |
||
163 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.