Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * This file is part of the sshilko/php-sql-mydb package. |
4 | * |
5 | * (c) Sergei Shilko <contact@sshilko.com> |
6 | * |
7 | * MIT License |
8 | * |
9 | * For the full copyright and license information, please view the LICENSE |
10 | * file that was distributed with this source code. |
11 | * @license https://opensource.org/licenses/mit-license.php MIT |
12 | */ |
13 | |
14 | declare(strict_types = 1); |
15 | |
16 | namespace sql\MydbMysqli; |
17 | |
18 | use mysqli_result; |
19 | |
20 | /** |
21 | * @author Sergei Shilko <contact@sshilko.com> |
22 | * @license https://opensource.org/licenses/mit-license.php MIT |
23 | * @see https://github.com/sshilko/php-sql-mydb |
24 | * @access protected |
25 | */ |
26 | interface MydbMysqliResultInterface |
27 | { |
28 | /** |
29 | * @psalm-param array<array-key, string> $warnings |
30 | */ |
31 | public function __construct(?mysqli_result $result, array $warnings, int $fieldsCount); |
32 | |
33 | public function getFieldCount(): int; |
34 | |
35 | /** |
36 | * @psalm-return array<array-key, string> |
37 | */ |
38 | public function getWarnings(): array; |
39 | |
40 | public function setErrorMessage(string $errorMessage): void; |
41 | |
42 | public function setErrorNumber(int $errorNumber): void; |
43 | |
44 | public function getError(): ?string; |
45 | |
46 | public function getResult(): ?array; |
47 | } |