|
2 | 2 |
|
3 | 3 | namespace Doctrine\DBAL; |
4 | 4 |
|
5 | | -use Traversable; |
6 | | - |
7 | 5 | class Result |
8 | 6 | { |
9 | 7 |
|
10 | | - /** |
11 | | - * @return list<__benevolent<float|int|string|null>>|false |
12 | | - */ |
13 | | - public function fetchNumeric(); |
14 | | - |
15 | | - /** |
16 | | - * @return array<string, __benevolent<float|int|string|null>>|false |
17 | | - */ |
18 | | - public function fetchAssociative(); |
19 | | - |
20 | | - /** |
21 | | - * @return __benevolent<float|int|string|false|null> |
22 | | - */ |
23 | | - public function fetchOne(); |
24 | | - |
25 | | - /** |
26 | | - * @return list<list<__benevolent<float|int|string|null>>> |
27 | | - */ |
28 | | - public function fetchAllNumeric(): array; |
29 | | - |
30 | | - /** |
31 | | - * @return list<array<string, __benevolent<float|int|string|null>>> |
32 | | - */ |
33 | | - public function fetchAllAssociative(): array; |
34 | | - |
35 | | - /** |
36 | | - * @return array<mixed, __benevolent<float|int|string|null>> |
37 | | - */ |
38 | | - public function fetchAllKeyValue(): array; |
39 | | - |
40 | | - /** |
41 | | - * @return array<mixed,array<string, __benevolent<float|int|string|null>>> |
42 | | - */ |
43 | | - public function fetchAllAssociativeIndexed(): array; |
44 | | - |
45 | | - /** |
46 | | - * @return list<__benevolent<float|int|string|null>> |
47 | | - */ |
48 | | - public function fetchFirstColumn(): array; |
49 | | - |
50 | | - /** |
51 | | - * @return Traversable<int, list<__benevolent<float|int|string|null>>> |
52 | | - */ |
53 | | - public function iterateNumeric(): Traversable; |
54 | | - |
55 | | - /** |
56 | | - * @return Traversable<int, array<string, __benevolent<float|int|string|null>>> |
57 | | - */ |
58 | | - public function iterateAssociative(): Traversable; |
59 | | - |
60 | | - /** |
61 | | - * @return Traversable<__benevolent<float|int|string|null>, __benevolent<float|int|string|null>> |
62 | | - */ |
63 | | - public function iterateKeyValue(): Traversable; |
64 | | - |
65 | | - /** |
66 | | - * @return Traversable<__benevolent<float|int|string|null>, array<string, __benevolent<float|int|string|null>>> |
67 | | - */ |
68 | | - public function iterateAssociativeIndexed(): Traversable; |
69 | | - |
70 | | - /** |
71 | | - * @return Traversable<int, __benevolent<float|int|string|null>> |
72 | | - */ |
73 | | - public function iterateColumn(): Traversable; |
74 | | - |
75 | | - public function rowCount(): int; |
76 | | - |
77 | | - public function columnCount(): int; |
78 | | - |
79 | | - public function free(): void; |
80 | | - |
81 | | - /** |
82 | | - * @deprecated Use {@see fetchNumeric()}, {@see fetchAssociative()} or {@see fetchOne()} instead. |
83 | | - * |
84 | | - * @phpstan-param FetchMode::* $mode |
85 | | - * @return ($mode is 2 ? array<string, __benevolent<float|int|string|null>>|false : ($mode is 3 ? list<__benevolent<float|int|string|null>>|false : __benevolent<float|int|string|false|null>)) |
86 | | - */ |
87 | | - public function fetch(int $mode = FetchMode::ASSOCIATIVE); |
88 | | - |
89 | | - /** |
90 | | - * @deprecated Use {@see fetchAllNumeric()}, {@see fetchAllAssociative()} or {@see fetchOne()} instead. |
91 | | - * |
92 | | - * @phpstan-param FetchMode::* $mode |
93 | | - * @return ($mode is 2 ? list<array<string, __benevolent<float|int|string|null>>> : ($mode is 3 ? list<list<__benevolent<float|int|string|null>>> : list<__benevolent<float|int|string|null>>)) |
94 | | - */ |
95 | | - public function fetchAll(int $mode = FetchMode::ASSOCIATIVE): array; |
96 | 8 | } |
0 commit comments