We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
18 | final class PluralIdentifyingRootFieldResolver implements ResolverInterface, AliasedInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var PromiseAdapter |
||
22 | */ |
||
23 | private $promiseAdapter; |
||
24 | |||
25 | 9 | public function __construct(PromiseAdapter $promiseAdapter) |
|
26 | { |
||
27 | 9 | $this->promiseAdapter = $promiseAdapter; |
|
28 | 9 | } |
|
29 | |||
30 | 1 | public function __invoke(array $inputs, $context, $info, callable $resolveSingleInput) |
|
31 | { |
||
32 | 1 | $data = []; |
|
33 | |||
34 | 1 | foreach ($inputs as $input) { |
|
35 | 1 | $data[$input] = $this->promiseAdapter->createFulfilled(call_user_func_array($resolveSingleInput, [$input, $context, $info])); |
|
36 | 1 | } |
|
37 | |||
38 | 1 | return $this->promiseAdapter->all($data); |
|
39 | } |
||
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 13 | public static function getAliases() |
|
48 | } |
||
49 |