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