Page MenuHomeWickedGov Phorge

SmallIntType.php
No OneTemporary

Size
967 B
Referenced Files
None
Subscribers
None

SmallIntType.php

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

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)

Event Timeline