| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class L extends Combinator |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var callable |
||
| 19 | */ |
||
| 20 | private $f; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var callable |
||
| 24 | */ |
||
| 25 | private $g; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * L constructor. |
||
| 29 | * |
||
| 30 | 1 | * @param callable $f |
|
| 31 | * @param callable $g |
||
| 32 | 1 | */ |
|
| 33 | 1 | public function __construct(callable $f, callable $g) |
|
| 37 | } |
||
| 38 | |||
| 39 | 1 | /** |
|
| 40 | * @psalm-return ResultType |
||
| 41 | 1 | * |
|
| 42 | * @return mixed |
||
| 43 | */ |
||
| 44 | public function __invoke() |
||
| 47 | 1 | } |
|
| 48 | |||
| 49 | /** |
||
| 50 | 1 | * @param callable $a |
|
| 51 | 1 | * |
|
| 52 | * @return Closure |
||
| 53 | */ |
||
| 54 | public static function on(callable $a): Closure |
||
| 61 |