We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class GraphQLServices extends ServiceLocator |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @param mixed ...$args |
||
| 19 | * |
||
| 20 | * @return mixed |
||
| 21 | */ |
||
| 22 | 45 | public function query(string $alias, ...$args) |
|
| 23 | { |
||
| 24 | 45 | return $this->get('queryResolver')->resolve([$alias, $args]); |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param mixed ...$args |
||
| 29 | * |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | 19 | public function mutation(string $alias, ...$args) |
|
| 33 | { |
||
| 34 | 19 | return $this->get('mutationResolver')->resolve([$alias, $args]); |
|
| 35 | } |
||
| 36 | |||
| 37 | 87 | public function getType(string $typeName): ?Type |
|
| 38 | { |
||
| 39 | 87 | return $this->get('typeResolver')->resolve($typeName); |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Creates an instance of InputValidator |
||
| 44 | * |
||
| 45 | * @param mixed $value |
||
| 46 | * @param mixed $context |
||
| 47 | */ |
||
| 48 | 16 | public function createInputValidator($value, ArgumentInterface $args, $context, ResolveInfo $info): InputValidator |
|
| 52 | ); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |