@@ -32,52 +32,52 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | interface IResult { |
| 34 | 34 | |
| 35 | - /** |
|
| 36 | - * @return true |
|
| 37 | - * |
|
| 38 | - * @since 21.0.0 |
|
| 39 | - */ |
|
| 40 | - public function closeCursor(): bool; |
|
| 35 | + /** |
|
| 36 | + * @return true |
|
| 37 | + * |
|
| 38 | + * @since 21.0.0 |
|
| 39 | + */ |
|
| 40 | + public function closeCursor(): bool; |
|
| 41 | 41 | |
| 42 | - /** |
|
| 43 | - * @param int $fetchMode |
|
| 44 | - * |
|
| 45 | - * @return mixed |
|
| 46 | - * |
|
| 47 | - * @since 21.0.0 |
|
| 48 | - */ |
|
| 49 | - public function fetch(int $fetchMode = PDO::FETCH_ASSOC); |
|
| 42 | + /** |
|
| 43 | + * @param int $fetchMode |
|
| 44 | + * |
|
| 45 | + * @return mixed |
|
| 46 | + * |
|
| 47 | + * @since 21.0.0 |
|
| 48 | + */ |
|
| 49 | + public function fetch(int $fetchMode = PDO::FETCH_ASSOC); |
|
| 50 | 50 | |
| 51 | - /** |
|
| 52 | - * @param int $fetchMode (one of PDO::FETCH_ASSOC, PDO::FETCH_NUM or PDO::FETCH_COLUMN (2, 3 or 7) |
|
| 53 | - * |
|
| 54 | - * @return mixed[] |
|
| 55 | - * |
|
| 56 | - * @since 21.0.0 |
|
| 57 | - */ |
|
| 58 | - public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array; |
|
| 51 | + /** |
|
| 52 | + * @param int $fetchMode (one of PDO::FETCH_ASSOC, PDO::FETCH_NUM or PDO::FETCH_COLUMN (2, 3 or 7) |
|
| 53 | + * |
|
| 54 | + * @return mixed[] |
|
| 55 | + * |
|
| 56 | + * @since 21.0.0 |
|
| 57 | + */ |
|
| 58 | + public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array; |
|
| 59 | 59 | |
| 60 | - /** |
|
| 61 | - * @return mixed |
|
| 62 | - * |
|
| 63 | - * @since 21.0.0 |
|
| 64 | - * @deprecated 21.0.0 use \OCP\DB\IResult::fetchOne |
|
| 65 | - */ |
|
| 66 | - public function fetchColumn(); |
|
| 60 | + /** |
|
| 61 | + * @return mixed |
|
| 62 | + * |
|
| 63 | + * @since 21.0.0 |
|
| 64 | + * @deprecated 21.0.0 use \OCP\DB\IResult::fetchOne |
|
| 65 | + */ |
|
| 66 | + public function fetchColumn(); |
|
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * Returns the first value of the next row of the result or FALSE if there are no more rows. |
|
| 70 | - * |
|
| 71 | - * @return false|mixed |
|
| 72 | - * |
|
| 73 | - * @since 21.0.0 |
|
| 74 | - */ |
|
| 75 | - public function fetchOne(); |
|
| 68 | + /** |
|
| 69 | + * Returns the first value of the next row of the result or FALSE if there are no more rows. |
|
| 70 | + * |
|
| 71 | + * @return false|mixed |
|
| 72 | + * |
|
| 73 | + * @since 21.0.0 |
|
| 74 | + */ |
|
| 75 | + public function fetchOne(); |
|
| 76 | 76 | |
| 77 | - /** |
|
| 78 | - * @return int |
|
| 79 | - * |
|
| 80 | - * @since 21.0.0 |
|
| 81 | - */ |
|
| 82 | - public function rowCount(): int; |
|
| 77 | + /** |
|
| 78 | + * @return int |
|
| 79 | + * |
|
| 80 | + * @since 21.0.0 |
|
| 81 | + */ |
|
| 82 | + public function rowCount(): int; |
|
| 83 | 83 | } |