Total Complexity | 5 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class Filter implements ModifierInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var callable |
||
16 | */ |
||
17 | private $filter; |
||
18 | |||
19 | /** |
||
20 | * Filter constructor. |
||
21 | * |
||
22 | * @param callable $filter |
||
23 | */ |
||
24 | 2 | public function __construct(callable $filter) |
|
27 | 2 | } |
|
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | 1 | public function modify(NodeInterface $tree): NodeInterface |
|
51 |