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