Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | final class ObjectFieldResolver implements PipelineInterface |
||
14 | { |
||
15 | private SplPriorityQueue $pipeline; |
||
16 | |||
17 | private int $secondPriority = \PHP_INT_MAX; |
||
18 | |||
19 | 5 | public function __construct() |
|
22 | } |
||
23 | |||
24 | 1 | public function __clone() |
|
27 | } |
||
28 | |||
29 | 4 | public function resolve(mixed $field): Webonyx\FieldDefinition |
|
30 | { |
||
31 | 4 | return (new Next($this->pipeline, new CantResolveObjectFieldResolver()))->resolve($field); |
|
32 | } |
||
33 | |||
34 | 3 | public function pipe(MiddlewareInterface $middleware, int $priority = 0): void |
|
37 | } |
||
38 | } |
||
39 |