Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | final class MergeMap implements Monoid |
||
18 | { |
||
19 | /** |
||
20 | * @template A of object |
||
21 | * @template B of object |
||
22 | * |
||
23 | * @param class-string<A> $key |
||
|
|||
24 | * @param class-string<B> $value |
||
25 | * |
||
26 | * @return self<A, B> |
||
27 | */ |
||
28 | public static function of(string $key = null, string $value = null): self |
||
29 | { |
||
30 | /** @var self<A, B> */ |
||
31 | return new self; |
||
32 | } |
||
33 | |||
34 | public function identity(): mixed |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param Map<T, U> $a |
||
42 | * @param Map<T, U> $b |
||
43 | * |
||
44 | * @return Map<T, U> |
||
45 | */ |
||
46 | public function combine(mixed $a, mixed $b): mixed |
||
49 | } |
||
50 | } |
||
51 |