1 | <?php |
||
18 | class IdScalar extends ScalarDefinition |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | public const TYPE_NAME = 'ID'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | public const TYPE_DESCRIPTION = <<<Description |
||
29 | The ID scalar type represents a unique identifier, often used to refetch |
||
30 | an object or as the key for a cache. The ID type is serialized in the |
||
31 | same way as a String; however, defining it as an ID signifies that it |
||
32 | is not intended to be human‐readable. |
||
33 | Description; |
||
34 | |||
35 | /** |
||
36 | * BooleanScalar constructor. |
||
37 | * @param Document $document |
||
38 | */ |
||
39 | 9 | public function __construct(Document $document) |
|
45 | |||
46 | /** |
||
47 | * @return int |
||
48 | */ |
||
49 | public function getLine(): int |
||
53 | } |
||
54 |