1 | <?php |
||
11 | class Driver implements BaseDriver |
||
12 | { |
||
13 | /** |
||
14 | * @var \Aws\DynamoDb\DynamoDbClient |
||
15 | */ |
||
16 | private $connection; |
||
17 | |||
18 | /** |
||
19 | * @var \Aws\DynamoDb\Marshaler |
||
20 | */ |
||
21 | private $marshaler; |
||
22 | |||
23 | /** |
||
24 | * Driver constructor. |
||
25 | * |
||
26 | * @param \Aws\DynamoDb\DynamoDbClient $connection |
||
27 | * @param string $database |
||
|
|||
28 | */ |
||
29 | 8 | public function __construct(DynamoDbClient $connection) |
|
34 | |||
35 | /** |
||
36 | * @return \Aws\DynamoDb\DynamoDbClient |
||
37 | */ |
||
38 | 3 | public function getConnection() |
|
42 | |||
43 | /** |
||
44 | * @param \Iterator $cursor |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 1 | public function fetch(\Iterator $cursor) |
|
59 | |||
60 | /** |
||
61 | * @param array $collection |
||
62 | * @param array $query |
||
63 | * |
||
64 | * @return \Iterator |
||
65 | */ |
||
66 | 2 | public function find($collection, array $query = []) |
|
80 | |||
81 | /** |
||
82 | * @param Collection $collection |
||
83 | * |
||
84 | * @return array |
||
85 | */ |
||
86 | 3 | public function generateQuery(Collection $collection) |
|
90 | |||
91 | /** |
||
92 | * @param Collection $collection |
||
93 | * |
||
94 | * @return array |
||
95 | */ |
||
96 | 3 | protected function parseConditions(Collection $collection) |
|
111 | |||
112 | /** |
||
113 | * @param Collection $collection |
||
114 | * |
||
115 | * @return array |
||
116 | */ |
||
117 | 3 | protected function getConditionArray(Collection $collection) |
|
140 | |||
141 | /** |
||
142 | * @param Collection $collection |
||
143 | * @param $document |
||
144 | */ |
||
145 | public function insert($collection, $document) |
||
154 | |||
155 | /** |
||
156 | * @param Collection $collection |
||
157 | * @param $criteria |
||
158 | * @param $document |
||
159 | */ |
||
160 | public function update($collection, $criteria, $document) |
||
170 | |||
171 | /** |
||
172 | * @param Collection $collection |
||
173 | * @param $criteria |
||
174 | */ |
||
175 | public function remove($collection, $criteria) |
||
184 | |||
185 | /** |
||
186 | * @param $values |
||
187 | * |
||
188 | * @return array |
||
189 | */ |
||
190 | protected function formatAttributes($values) |
||
202 | |||
203 | 2 | protected function formatResults(\Aws\Result $result) |
|
217 | } |
||
218 |
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.