Page MenuHomeWickedGov Phorge

IntegerType.php
No OneTemporary

Size
955 B
Referenced Files
None
Subscribers
None

IntegerType.php

<?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

Mime Type
text/x-php
Expires
Aug 18 2026, 05:17 (8 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
58/3d/52670eb7597a34bef5b31afae530
Default Alt Text
IntegerType.php (955 B)

Event Timeline