%PDF- %PDF-
Direktori : /var/www/html/diaspora/api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/ |
Current File : /var/www/html/diaspora/api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/BigIntType.php |
<?php namespace Doctrine\DBAL\Types; use Doctrine\DBAL\ParameterType; use Doctrine\DBAL\Platforms\AbstractPlatform; /** * Type that maps a database BIGINT to a PHP string. */ class BigIntType extends Type implements PhpIntegerMappingType { /** * {@inheritdoc} */ public function getName() { return Type::BIGINT; } /** * {@inheritdoc} */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { return $platform->getBigIntTypeDeclarationSQL($fieldDeclaration); } /** * {@inheritdoc} */ public function getBindingType() { return ParameterType::STRING; } /** * {@inheritdoc} */ public function convertToPHPValue($value, AbstractPlatform $platform) { return $value === null ? null : (string) $value; } }