Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4140286
BigIntType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
963 B
Referenced Files
None
Subscribers
None
BigIntType.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment