ParameterType.php 964 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

namespace Doctrine\DBAL;

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

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

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

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

    /**
     * Represents a boolean data type.
     *
     * @see \PDO::PARAM_BOOL
     */
43
    public const BOOLEAN = 5;
44

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

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