ParameterType::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 0
dl 0
loc 2
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL;
6
7
/**
8
 * Contains statement parameter types.
9
 */
10
final class ParameterType
11
{
12
    /**
13
     * Represents the SQL NULL data type.
14
     *
15
     * @see \PDO::PARAM_NULL
16
     */
17
    public const NULL = 0;
18
19
    /**
20
     * Represents the SQL INTEGER data type.
21
     *
22
     * @see \PDO::PARAM_INT
23
     */
24
    public const INTEGER = 1;
25
26
    /**
27
     * Represents the SQL CHAR, VARCHAR, or other string data type.
28
     *
29
     * @see \PDO::PARAM_STR
30
     */
31
    public const STRING = 2;
32
33
    /**
34
     * Represents the SQL large object data type.
35
     *
36
     * @see \PDO::PARAM_LOB
37
     */
38
    public const LARGE_OBJECT = 3;
39
40
    /**
41
     * Represents a boolean data type.
42
     *
43
     * @see \PDO::PARAM_BOOL
44
     */
45
    public const BOOLEAN = 5;
46
47
    /**
48
     * Represents a binary string data type.
49
     */
50
    public const BINARY = 16;
51
52
    /**
53
     * This class cannot be instantiated.
54
     */
55
    private function __construct()
56
    {
57
    }
58
}
59