File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -37,28 +37,28 @@ public static function getMapValueByKey(string $key) {
37
37
throw new InvalidArgumentException ("Ключ {$ key } отсутствует. " );
38
38
}
39
39
40
- return self ::$ map [$ key ];
40
+ return static ::$ map [$ key ];
41
41
}
42
42
43
43
/**
44
44
* @inheritDoc
45
45
*/
46
46
public static function has (string $ key ): bool {
47
- return array_key_exists ($ key , self ::$ map );
47
+ return array_key_exists ($ key , static ::$ map );
48
48
}
49
49
50
50
/**
51
51
* @inheritDoc
52
52
*/
53
53
public static function getMap (string $ key = '' ): array {
54
54
if (empty ($ key )) {
55
- return self ::$ map ;
55
+ return static ::$ map ;
56
56
}
57
57
58
58
if (!self ::has ($ key )) {
59
59
throw new InvalidArgumentException ("Ключ {$ key } отсутствует. " );
60
60
}
61
61
62
- return [$ key => self ::$ map [$ key ]];
62
+ return [$ key => static ::$ map [$ key ]];
63
63
}
64
- }
64
+ }
You can’t perform that action at this time.
0 commit comments