| Total Complexity | 3 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | final class O extends Combinator |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var callable |
||
| 16 | */ |
||
| 17 | private $f; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var callable |
||
| 21 | */ |
||
| 22 | private $g; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * O constructor. |
||
| 26 | * |
||
| 27 | * @param callable $f |
||
| 28 | * @param callable $g |
||
| 29 | */ |
||
| 30 | 1 | public function __construct(callable $f, callable $g) |
|
| 31 | { |
||
| 32 | 1 | $this->f = $f; |
|
| 33 | 1 | $this->g = $g; |
|
| 34 | 1 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | 1 | public function __invoke() |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return callable |
||
| 46 | */ |
||
| 47 | 1 | public static function closure(): callable |
|
| 54 |