for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of Railt package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Railt\SDL\Standard\Scalars;
* The Float standard scalar implementation.
* @see http://facebook.github.io/graphql/#sec-Float
class FloatType extends StringType
{
* The Float scalar public name constant.
* This name will be used in the future as
* the type name available for use in our GraphQL schema.
protected const SCALAR_TYPE_NAME = 'Float';
* Short Float scalar public description.
protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional ' .
'values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).';
* @param mixed|float $value
* @return bool
public function isCompatible($value): bool
return \is_float($value);
}