Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | final class Executor |
||
22 | { |
||
23 | /** |
||
24 | * @var TraverserInterface |
||
25 | */ |
||
26 | private TraverserInterface $traverser; |
||
27 | |||
28 | /** |
||
29 | * Executor constructor. |
||
30 | * |
||
31 | * @param SpecificationInterface $spec |
||
32 | */ |
||
33 | public function __construct(SpecificationInterface $spec) |
||
34 | { |
||
35 | $this->traverser = new Traverser([$spec]); |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param iterable|Node[] $ast |
||
40 | * @return iterable|Node[] |
||
41 | */ |
||
42 | public function execute(iterable $ast): iterable |
||
45 | } |
||
46 | } |
||
47 |