1 | <?php |
||
19 | final class FloatScalar extends ScalarDefinition |
||
20 | { |
||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | public const TYPE_NAME = 'Float'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | public const TYPE_DESCRIPTION = 'A signed double-precision floating-point value.'; |
||
30 | |||
31 | /** |
||
32 | * @var int |
||
33 | */ |
||
34 | private const DEFINITION_LINE = 8; |
||
35 | |||
36 | /** |
||
37 | * BooleanScalar constructor. |
||
38 | * @param Document $document |
||
39 | */ |
||
40 | 9 | public function __construct(Document $document) |
|
47 | |||
48 | /** |
||
49 | * @param mixed $value |
||
50 | * @return float |
||
51 | * @throws TypeConflictException |
||
52 | */ |
||
53 | public function parse($value): float |
||
61 | |||
62 | /** |
||
63 | * @param mixed $value |
||
64 | * @return float |
||
65 | * @throws TypeConflictException |
||
66 | */ |
||
67 | public function serialize($value): float |
||
75 | |||
76 | /** |
||
77 | * @return bool |
||
78 | */ |
||
79 | public function isBuiltin(): bool |
||
83 | } |
||
84 |