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