Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5983037
IntegerType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
955 B
Referenced Files
None
Subscribers
None
IntegerType.php
View Options
<?php
namespace
Doctrine\DBAL\Types
;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
/**
* Type that maps an SQL INT to a PHP integer.
*/
class
IntegerType
extends
Type
implements
PhpIntegerMappingType
{
/**
* {@inheritDoc}
*/
public
function
getName
()
{
return
Types
::
INTEGER
;
}
/**
* {@inheritDoc}
*/
public
function
getSQLDeclaration
(
array
$column
,
AbstractPlatform
$platform
)
{
return
$platform
->
getIntegerTypeDeclarationSQL
(
$column
);
}
/**
* {@inheritDoc}
*
* @param T $value
*
* @return (T is null ? null : int)
*
* @template T
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
return
$value
===
null
?
null
:
(
int
)
$value
;
}
/**
* {@inheritDoc}
*/
public
function
getBindingType
()
{
return
ParameterType
::
INTEGER
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 22:41 (1 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/3d/52670eb7597a34bef5b31afae530
Default Alt Text
IntegerType.php (955 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment