Total Complexity | 5 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | final class Nothing implements Implementation |
||
13 | { |
||
14 | public function map(callable $map): self |
||
17 | } |
||
18 | |||
19 | public function flatMap(callable $map): Maybe |
||
22 | } |
||
23 | |||
24 | public function match(callable $just, callable $nothing) |
||
27 | } |
||
28 | |||
29 | public function otherwise(callable $otherwise): Maybe |
||
30 | { |
||
31 | return $otherwise(); |
||
32 | } |
||
33 | |||
34 | public function filter(callable $predicate): self |
||
37 | } |
||
38 | } |
||
39 |