Total Complexity | 3 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | final class Ki extends Combinator |
||
15 | { |
||
16 | /** |
||
17 | * @var mixed |
||
18 | */ |
||
19 | private $x; |
||
20 | |||
21 | /** |
||
22 | * @var mixed |
||
23 | */ |
||
24 | private $y; |
||
25 | |||
26 | /** |
||
27 | * Ki constructor. |
||
28 | * |
||
29 | * @psalm-param XType $x |
||
30 | * @psalm-param XType $y |
||
31 | * |
||
32 | * @param mixed $x |
||
33 | * @param mixed $y |
||
34 | */ |
||
35 | public function __construct($x, $y) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @psalm-return XType |
||
43 | */ |
||
44 | public function __invoke() |
||
45 | { |
||
46 | return $this->y; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return callable |
||
51 | */ |
||
52 | public static function closure(): callable |
||
56 | }; |
||
57 | } |
||
59 |