Total Complexity | 3 |
Total Lines | 53 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class D 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 | * @var mixed |
||
31 | */ |
||
32 | private $y; |
||
33 | |||
34 | /** |
||
35 | * D constructor. |
||
36 | * |
||
37 | * @param callable $f |
||
38 | * @param callable $g |
||
39 | * @param mixed $x |
||
40 | * @param mixed $y |
||
41 | */ |
||
42 | 1 | public function __construct(callable $f, $x, callable $g, $y) |
|
43 | { |
||
44 | 1 | $this->f = $f; |
|
45 | 1 | $this->x = $x; |
|
46 | 1 | $this->g = $g; |
|
47 | 1 | $this->y = $y; |
|
48 | 1 | } |
|
49 | |||
50 | /** |
||
51 | * @return mixed |
||
52 | */ |
||
53 | 1 | public function __invoke() |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return callable |
||
60 | */ |
||
61 | 1 | public static function closure(): callable |
|
68 |