Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class i18n |
||
8 | { |
||
9 | /** |
||
10 | * @var i18n|null |
||
11 | */ |
||
12 | private static ?i18n $instance = null; |
||
13 | |||
14 | /** |
||
15 | * @return i18n |
||
16 | */ |
||
17 | public static function getInstance () : i18n |
||
18 | { |
||
19 | if ( is_null( static::$instance ) ) { |
||
|
|||
20 | static::$instance = new static; |
||
21 | } |
||
22 | |||
23 | return static::$instance; |
||
24 | } |
||
25 | |||
26 | public function getText ( string $language = "en_US", string $className, string $entry ) : string |
||
43 | } |
||
44 | } |
||
45 |