Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430671
SmallIntType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
967 B
Referenced Files
None
Subscribers
None
SmallIntType.php
View Options
<?php
namespace
Doctrine\DBAL\Types
;
use
Doctrine\DBAL\ParameterType
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
/**
* Type that maps a database SMALLINT to a PHP integer.
*/
class
SmallIntType
extends
Type
implements
PhpIntegerMappingType
{
/**
* {@inheritDoc}
*/
public
function
getName
()
{
return
Types
::
SMALLINT
;
}
/**
* {@inheritDoc}
*/
public
function
getSQLDeclaration
(
array
$column
,
AbstractPlatform
$platform
)
{
return
$platform
->
getSmallIntTypeDeclarationSQL
(
$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, May 16, 19:23 (5 h, 29 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
74/e3/1161e491a3083169826995522ff0
Default Alt Text
SmallIntType.php (967 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment