1 | <?php |
||
16 | class MysqlDriver extends BaseMysqlDriver |
||
17 | { |
||
18 | /** |
||
19 | * Method to get an array of the result set rows from the database query as a Generator where each row is an associative array |
||
20 | * of ['field_name' => 'row_value']. The array of rows can optionally be keyed by a field name, but defaults to |
||
21 | * a sequential numeric array. |
||
22 | * |
||
23 | * NOTE: Chosing to key the result array by a non-unique field name can result in unwanted |
||
24 | * behavior and should be avoided. |
||
25 | * |
||
26 | * @param string $key The name of a field on which to key the result array. |
||
27 | * @param string $column An optional column name. Instead of the whole row, only this column value will be in |
||
28 | * the result array. |
||
29 | * |
||
30 | * @return \Generator|null A Generator with the result set or null if the query failed. |
||
31 | * |
||
32 | * @since 1.0 |
||
33 | * @throws \RuntimeException |
||
34 | */ |
||
35 | public function yieldAssocList($key = null, $column = null) |
||
54 | } |
||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.