Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.032 |
Changes | 2 | ||
Bugs | 0 | Features | 2 |
1 | <?php |
||
24 | 18 | public function __construct($biFunction) |
|
25 | { |
||
26 | 18 | if ($biFunction instanceof BinaryFunctionInterface) { |
|
27 | $this->biFunction = $biFunction; |
||
28 | } else { |
||
29 | // TODO: add a check that this is a \Closure and that is has the correct number of parameters |
||
30 | 18 | $this->biFunction = $biFunction; |
|
31 | } |
||
32 | 18 | } |
|
33 | } |
||
34 |