Total Complexity | 3 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | final class K extends Combinator |
||
17 | { |
||
18 | /** |
||
19 | * @var mixed |
||
20 | */ |
||
21 | private $x; |
||
22 | |||
23 | /** |
||
24 | * @var mixed |
||
25 | */ |
||
26 | private $y; |
||
27 | |||
28 | /** |
||
29 | * K constructor. |
||
30 | 1 | * |
|
31 | * @psalm-param AType $x |
||
32 | 1 | * @psalm-param BType $y |
|
33 | 1 | * |
|
34 | 1 | * @param mixed $x |
|
35 | * @param mixed $y |
||
36 | */ |
||
37 | public function __construct($x, $y) |
||
38 | { |
||
39 | 1 | $this->x = $x; |
|
40 | $this->y = $y; |
||
41 | 1 | } |
|
42 | |||
43 | /** |
||
44 | * @psalm-return BType |
||
45 | */ |
||
46 | public function __invoke() |
||
49 | } |
||
50 | 1 | ||
51 | 1 | /** |
|
52 | * @param callable $a |
||
53 | * |
||
54 | * @return Closure |
||
55 | */ |
||
56 | public static function on($a): Closure |
||
63 |