Total Complexity | 2 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class Phoenix extends Combinator |
||
18 | { |
||
19 | /** |
||
20 | * @var callable |
||
21 | */ |
||
22 | private $f; |
||
23 | |||
24 | /** |
||
25 | * @var callable |
||
26 | */ |
||
27 | private $g; |
||
28 | |||
29 | /** |
||
30 | * @var callable |
||
31 | */ |
||
32 | private $h; |
||
33 | |||
34 | /** |
||
35 | * @var mixed |
||
36 | */ |
||
37 | private $x; |
||
38 | |||
39 | /** |
||
40 | * Psi constructor. |
||
41 | * |
||
42 | * @psalm-param callable(BType) : callable(CType) : DType $f |
||
43 | * @psalm-param callable(AType) : BType $g |
||
44 | * @psalm-param callable(AType) : CType $h |
||
45 | * @psalm-param AType $x |
||
46 | * |
||
47 | * @param callable $f |
||
48 | * @param callable $g |
||
49 | * @param callable $h |
||
50 | * @param mixed $x |
||
51 | */ |
||
52 | public function __construct(callable $f, callable $g, callable $h, $x) |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @psalm-return DType |
||
62 | */ |
||
63 | public function __invoke() |
||
68 |