Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5979250
FloatType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
702 B
Referenced Files
None
Subscribers
None
FloatType.php
View Options
<?php
namespace
Doctrine\DBAL\Types
;
use
Doctrine\DBAL\Platforms\AbstractPlatform
;
class
FloatType
extends
Type
{
/**
* {@inheritDoc}
*/
public
function
getName
()
{
return
Types
::
FLOAT
;
}
/**
* {@inheritDoc}
*/
public
function
getSQLDeclaration
(
array
$column
,
AbstractPlatform
$platform
)
{
return
$platform
->
getFloatDeclarationSQL
(
$column
);
}
/**
* {@inheritDoc}
*
* @param T $value
*
* @return (T is null ? null : float)
*
* @template T
*/
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
return
$value
===
null
?
null
:
(
float
)
$value
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:49 (4 d, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
95/1b/9ae8d475bfa1284988abe769f70a
Default Alt Text
FloatType.php (702 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment