Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | abstract class AbstractPredicateOperation implements IntermediateOperation |
||
18 | { |
||
19 | /** @var callable|\Closure|UnaryFunction|BinaryFunction */ |
||
20 | protected $function; |
||
21 | |||
22 | /** |
||
23 | * @param callable|\Closure|UnaryFunction|BinaryFunction $condition |
||
24 | */ |
||
25 | 48 | public function __construct($condition) |
|
28 | 48 | } |
|
29 | |||
30 | /** |
||
31 | * @param $input1 |
||
32 | * @param $input2 |
||
33 | * |
||
34 | * @return bool |
||
35 | */ |
||
36 | 41 | protected function test($input1, $input2 = null) |
|
43 |