Total Complexity | 1 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
10 | final class FetchMode |
||
11 | { |
||
12 | /** |
||
13 | * Specifies that the fetch method shall return each row as an array indexed |
||
14 | * by column name as returned in the corresponding result set. If the result |
||
15 | * set contains multiple columns with the same name, the statement returns |
||
16 | * only a single value per column name. |
||
17 | * |
||
18 | * @see \PDO::FETCH_ASSOC |
||
19 | */ |
||
20 | public const ASSOCIATIVE = 2; |
||
21 | |||
22 | /** |
||
23 | * Specifies that the fetch method shall return each row as an array indexed |
||
24 | * by column number as returned in the corresponding result set, starting at |
||
25 | * column 0. |
||
26 | * |
||
27 | * @see \PDO::FETCH_NUM |
||
28 | */ |
||
29 | public const NUMERIC = 3; |
||
30 | |||
31 | /** |
||
32 | * Specifies that the fetch method shall return each row as an array indexed |
||
33 | * by both column name and number as returned in the corresponding result set, |
||
34 | * starting at column 0. |
||
35 | * |
||
36 | * @see \PDO::FETCH_BOTH |
||
37 | */ |
||
38 | public const MIXED = 4; |
||
39 | |||
40 | /** |
||
41 | * Specifies that the fetch method shall return only a single requested |
||
42 | * column from the next row in the result set. |
||
43 | * |
||
44 | * @see \PDO::FETCH_COLUMN |
||
45 | */ |
||
46 | public const COLUMN = 7; |
||
47 | |||
48 | /** |
||
49 | * This class cannot be instantiated. |
||
50 | */ |
||
51 | private function __construct() |
||
55 |