%PDF- %PDF-
Direktori : /var/www/html/geotechnics/api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/ |
Current File : /var/www/html/geotechnics/api/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/FloatType.php |
<?php namespace Doctrine\DBAL\Types; use Doctrine\DBAL\Platforms\AbstractPlatform; class FloatType extends Type { /** * {@inheritdoc} */ public function getName() { return Type::FLOAT; } /** * {@inheritdoc} */ public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform) { return $platform->getFloatDeclarationSQL($fieldDeclaration); } /** * {@inheritdoc} */ public function convertToPHPValue($value, AbstractPlatform $platform) { return $value === null ? null : (float) $value; } }