Total Complexity | 11 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class ParallelVisitor implements VisitorInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var array|VisitorInterface[] |
||
11 | */ |
||
12 | protected $visitors; |
||
13 | |||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $_skipping = []; |
||
18 | |||
19 | /** |
||
20 | * ParallelVisitor constructor. |
||
21 | * @param array|VisitorInterface[] $visitors |
||
22 | */ |
||
23 | public function __construct($visitors) |
||
24 | { |
||
25 | $this->visitors = $visitors; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function enterNode(NodeInterface $node): ?NodeInterface |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | public function leaveNode(NodeInterface $node): ?NodeInterface |
||
76 | } |
||
77 | } |
||
78 |