Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | final class Curry |
||
24 | { |
||
25 | /** |
||
26 | * @template T |
||
27 | * @psalm-pure |
||
28 | */ |
||
29 | 4 | public static function of(): Closure |
|
45 | 4 | ); |
|
46 | } |
||
47 | |||
48 | private static function curryN(int $numberOfArguments, callable $function, ...$args): mixed |
||
59 | } |
||
60 | |||
61 | 4 | /** |
|
62 | * @psalm-pure |
||
63 | 4 | * |
|
64 | 4 | * @psalm-param list<mixed> $args |
|
65 | * @psalm-param list<mixed> $argsNext |
||
66 | * |
||
67 | * @psalm-return Generator<int, mixed> |
||
68 | */ |
||
69 | private static function getArguments(array $args = [], array $argsNext = []): Generator |
||
74 |