Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class FilterByPredicate extends AbstractPredicateOperation |
||
18 | { |
||
19 | /** @var callable|\Closure|BinaryFunction|UnaryFunction */ |
||
20 | private $mapper; |
||
21 | |||
22 | /** |
||
23 | * FilterByPredicate constructor. |
||
24 | * |
||
25 | * @param callable|\Closure|BinaryFunction|UnaryFunction $mapper |
||
26 | * @param callable|\Closure|BinaryFunction|UnaryFunction $condition |
||
27 | */ |
||
28 | 2 | public function __construct($mapper, $condition) |
|
32 | 2 | } |
|
33 | |||
34 | /** |
||
35 | * {@inheritdoc} |
||
36 | */ |
||
37 | 2 | public function apply($input, $index, IntermediateContext $context) |
|
47 |