| 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 $binaryFunction |
||
| 24 | */ |
||
| 25 | 25 | public function __construct($binaryFunction) |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @param $input1 |
||
| 32 | * @param $input2 |
||
| 33 | * |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | 21 | protected function test($input1, $input2 = null) |
|
| 42 | } |
||
| 43 |