Total Complexity | 3 |
Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | class NoValueMonad |
||
11 | { |
||
12 | private static ?self $instance = null; |
||
13 | |||
14 | 238 | public static function getInstance(): self |
|
15 | { |
||
16 | 238 | if (self::$instance === null) { |
|
17 | 1 | self::$instance = new self(); |
|
18 | } |
||
19 | |||
20 | 238 | return self::$instance; |
|
|
|||
21 | } |
||
22 | |||
23 | 1 | private function __construct() |
|
25 | 1 | } |
|
26 | } |
||
27 |