Total Complexity | 3 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | final class Y extends Combinator |
||
16 | { |
||
17 | /** |
||
18 | * @var callable |
||
19 | */ |
||
20 | private $f; |
||
21 | |||
22 | /** |
||
23 | * Y constructor. |
||
24 | 1 | * |
|
25 | * @psalm-param callable $f |
||
26 | 1 | * |
|
27 | 1 | * @param callable $f |
|
28 | */ |
||
29 | public function __construct(callable $f) |
||
32 | 1 | } |
|
33 | |||
34 | 1 | /** |
|
35 | * @psalm-return Closure(Closure(callable): mixed): mixed |
||
36 | */ |
||
37 | 1 | public function __invoke() |
|
50 | 1 | } |
|
51 | |||
52 | /** |
||
53 | 1 | * @param callable $a |
|
54 | 1 | * |
|
55 | * @return Closure |
||
56 | */ |
||
57 | public static function on(callable $a): Closure |
||
62 |