| 1 | <?php |
||
| 17 | class FloatType extends StringType |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The Float scalar public name constant. |
||
| 21 | * This name will be used in the future as |
||
| 22 | * the type name available for use in our GraphQL schema. |
||
| 23 | */ |
||
| 24 | protected const SCALAR_TYPE_NAME = 'Float'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Short Float scalar public description. |
||
| 28 | */ |
||
| 29 | protected const TYPE_DESCRIPTION = 'The `Float` scalar type represents signed double-precision fractional ' . |
||
| 30 | 'values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point).'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param mixed|float $value |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | 240 | public function isCompatible($value): bool |
|
| 40 | } |
||
| 41 |