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