-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathResult.php
52 lines (46 loc) · 1.43 KB
/
Result.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
namespace Doctrine\DBAL;
use Doctrine\DBAL\Driver\Exception;
use Traversable;
/**
* This interfaces contains methods allowing forward compatibility with v3.0 Result
*
* @see https://github.com/doctrine/dbal/blob/3.0.x/src/Result.php
*/
interface Result extends Abstraction\Result
{
/**
* Returns an array containing the values of the first column of the result.
*
* @return array<mixed,mixed>
*
* @throws Exception
*/
public function fetchAllKeyValue(): array;
/**
* Returns an associative array with the keys mapped to the first column and the values being
* an associative array representing the rest of the columns and their values.
*
* @return array<mixed,array<string,mixed>>
*
* @throws Exception
*/
public function fetchAllAssociativeIndexed(): array;
/**
* Returns an iterator over the result set with the values of the first column of the result
*
* @return Traversable<mixed,mixed>
*
* @throws Exception
*/
public function iterateKeyValue(): Traversable;
/**
* Returns an iterator over the result set with the keys mapped to the first column and the values being
* an associative array representing the rest of the columns and their values.
*
* @return Traversable<mixed,array<string,mixed>>
*
* @throws Exception
*/
public function iterateAssociativeIndexed(): Traversable;
}