| Total Complexity | 3 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | final class J extends Combinator |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var callable |
||
| 20 | */ |
||
| 21 | private $f; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var mixed |
||
| 25 | */ |
||
| 26 | private $x; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var mixed |
||
| 30 | */ |
||
| 31 | private $y; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var mixed |
||
| 35 | */ |
||
| 36 | private $z; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * J constructor. |
||
| 40 | * |
||
| 41 | * @psalm-param callable(AType): callable(BType): BType $f |
||
| 42 | 1 | * @psalm-param AType $x |
|
| 43 | * @psalm-param BType $y |
||
| 44 | 1 | * @psalm-param AType $z |
|
| 45 | 1 | * |
|
| 46 | 1 | * @param callable $f |
|
| 47 | 1 | * @param mixed $x |
|
| 48 | 1 | * @param mixed $y |
|
| 49 | * @param mixed $z |
||
| 50 | */ |
||
| 51 | public function __construct(callable $f, $x, $y, $z) |
||
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @psalm-return BType |
||
| 61 | 1 | */ |
|
| 62 | public function __invoke() |
||
| 65 | 1 | } |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @param callable $a |
||
| 69 | * |
||
| 70 | * @return Closure |
||
| 71 | */ |
||
| 72 | public static function on(callable $a): Closure |
||
| 83 |