src/Database/Database.php
protected function public__getPdoType($type)
    {
        static $map = [
            'boolean' => \PDO::PARAM_BOOL,
            'bool' => \PDO::PARAM_BOOL,
            'integer' => \PDO::PARAM_INT,
            'int' => \PDO::PARAM_INT,
            'resource' => \PDO::PARAM_LOB,
            'NULL' => \PDO::PARAM_NULL,
            'NULL' => \PDO::PARAM_NULL,
        ];
        return isset($map[$type]) ? $map[$type] : \PDO::PARAM_STR;
    }
protected function public__getPdoType($type)
    {
        static $map = [
            'boolean' => \PDO::PARAM_BOOL,
            'bool' => \PDO::PARAM_BOOL,
            'integer' => \PDO::PARAM_INT,
            'int' => \PDO::PARAM_INT,
            'resource' => \PDO::PARAM_LOB,
            'NULL' => \PDO::PARAM_NULL,
            'NULL' => \PDO::PARAM_NULL,
        ];
        return isset($map[$type]) ? $map[$type] : \PDO::PARAM_STR;
    }
Determines the PDO type for the specified PHP type.

@param string $type The PHP type (obtained by gettype() call).
\gettype($var) returns:
Possible values for the returned string are:
"boolean"
"integer"
"double" (for historical reasons "double" is returned in case of
a float, and not simply "float")
"string"
"array"
"object"
"resource"
"NULL"
"unknown type"
@return integer the corresponding PDO type