Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class SerializeClassProcess |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $serializes = []; |
||
|
|||
13 | |||
14 | /** |
||
15 | * @var null|object |
||
16 | */ |
||
17 | private static $singleton; |
||
18 | |||
19 | /** |
||
20 | * @return object|Serializer|null |
||
21 | */ |
||
22 | private static function getInstance() |
||
23 | { |
||
24 | if(is_null(self::$singleton)){ |
||
25 | self::$singleton = new Serializer(); |
||
26 | } |
||
27 | |||
28 | return self::$singleton; |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param $key |
||
33 | * @return mixed |
||
34 | */ |
||
35 | public static function get($key) |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @param $key |
||
43 | * @return string |
||
44 | */ |
||
45 | public static function set($key) |
||
51 | } |