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 | 23 | public function __construct(array $config = []) |
|
| 12 | { |
||
| 13 | 23 | $config['name'] = isset($config['name']) ? $config['name'] : uniqid('CustomScalar'); |
|
| 14 | 23 | parent::__construct($config); |
|
| 15 | |||
| 16 | 23 | $this->config['scalarType'] = isset($this->config['scalarType']) ? $this->config['scalarType'] : null; |
|
| 17 | 23 | } |
|
| 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) |
|
| 54 | |||
| 55 | 19 | public function assertValid() |
|
| 76 | } |
||
| 77 |