FetchMode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 43
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL;
6
7
/**
8
 * Contains statement fetch modes.
9
 */
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()
52
    {
53
    }
54
}
55