We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
9 | class CustomScalarType extends BaseCustomScalarType |
||
10 | { |
||
11 | 24 | public function __construct(array $config = []) |
|
12 | { |
||
13 | 24 | $config['name'] = isset($config['name']) ? $config['name'] : uniqid('CustomScalar'); |
|
14 | 24 | parent::__construct($config); |
|
15 | |||
16 | 24 | $this->config['scalarType'] = isset($this->config['scalarType']) ? $this->config['scalarType'] : null; |
|
17 | 24 | } |
|
18 | |||
19 | /** |
||
20 | * {@inheritdoc} |
||
21 | */ |
||
22 | 8 | public function serialize($value) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 7 | public function parseValue($value) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 5 | public function parseLiteral(/* GraphQL\Language\AST\ValueNode */ $valueNode) |
|
42 | |||
43 | 12 | private function call($type, $value) |
|
51 | |||
52 | 20 | public function assertValid() |
|
70 | |||
71 | 18 | private function loadScalarType() |
|
81 | } |
||
82 |