Вход Регистрация
Файл: vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/BigIntType.php
Строк: 38
<?php

namespace DoctrineDBALTypes;

use 
DoctrineDBALParameterType;
use 
DoctrineDBALPlatformsAbstractPlatform;

/**
 * Type that maps a database BIGINT to a PHP string.
 */
class BigIntType extends Type implements PhpIntegerMappingType
{
    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
Types::BIGINT;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getSQLDeclaration(array $columnAbstractPlatform $platform)
    {
        return 
$platform->getBigIntTypeDeclarationSQL($column);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getBindingType()
    {
        return 
ParameterType::STRING;
    }

    
/**
     * {@inheritdoc}
     */
    
public function convertToPHPValue($valueAbstractPlatform $platform)
    {
        return 
$value === null null : (string) $value;
    }
}
Онлайн: 0
Реклама