Page MenuHomeWickedGov Phorge

BigIntType.php
No OneTemporary

Size
963 B
Referenced Files
None
Subscribers
None

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 Types::BIGINT;
}
/**
* {@inheritDoc}
*/
public function getSQLDeclaration(array $column, AbstractPlatform $platform)
{
return $platform->getBigIntTypeDeclarationSQL($column);
}
/**
* {@inheritDoc}
*/
public function getBindingType()
{
return ParameterType::STRING;
}
/**
* {@inheritDoc}
*
* @param T $value
*
* @return (T is null ? null : string)
*
* @template T
*/
public function convertToPHPValue($value, AbstractPlatform $platform)
{
return $value === null ? null : (string) $value;
}
}

File Metadata

Mime Type
text/x-php
Expires
Wed, Aug 19, 15:25 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
23/b6/4fb6d7bd06331d5dcd764452ac73
Default Alt Text
BigIntType.php (963 B)

Event Timeline