Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class WalletProxy |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var array |
||
10 | */ |
||
11 | protected static $data = []; |
||
12 | |||
13 | /** |
||
14 | * @param int $key |
||
15 | * @return bool |
||
16 | */ |
||
17 | 25 | public static function has(int $key): bool |
|
20 | } |
||
21 | |||
22 | /** |
||
23 | * @param int $key |
||
24 | * @return int |
||
25 | */ |
||
26 | 25 | public static function get(int $key): float |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param int $key |
||
33 | * @param int $value |
||
34 | * @return bool |
||
35 | */ |
||
36 | 25 | public static function set(int $key, float $value): bool |
|
37 | { |
||
38 | 25 | static::$data[$key] = $value; |
|
39 | 25 | return true; |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return void |
||
44 | */ |
||
45 | 30 | public static function fresh(): void |
|
48 | 30 | } |
|
49 | |||
51 |