ParameterType.php 1.02 KB
Newer Older
1 2 3 4
<?php

namespace Doctrine\DBAL;

5 6
use PDO;

7 8 9
/**
 * Contains statement parameter types.
 */
10
final class ParameterType
11 12 13 14 15 16
{
    /**
     * Represents the SQL NULL data type.
     *
     * @see \PDO::PARAM_NULL
     */
17
    public const NULL = PDO::PARAM_NULL;
18 19 20 21 22 23

    /**
     * Represents the SQL INTEGER data type.
     *
     * @see \PDO::PARAM_INT
     */
24
    public const INTEGER = PDO::PARAM_INT;
25 26 27 28 29 30

    /**
     * Represents the SQL CHAR, VARCHAR, or other string data type.
     *
     * @see \PDO::PARAM_STR
     */
31
    public const STRING = PDO::PARAM_STR;
32 33 34 35 36 37

    /**
     * Represents the SQL large object data type.
     *
     * @see \PDO::PARAM_LOB
     */
38
    public const LARGE_OBJECT = PDO::PARAM_LOB;
39 40 41 42 43 44

    /**
     * Represents a boolean data type.
     *
     * @see \PDO::PARAM_BOOL
     */
45
    public const BOOLEAN = PDO::PARAM_BOOL;
46

47 48 49 50 51
    /**
     * Represents a binary string data type.
     */
    public const BINARY = 16;

52 53 54
    /**
     * This class cannot be instantiated.
     */
55
    private function __construct()
56 57 58
    {
    }
}