File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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) {
3737 throw new InvalidArgumentException ("Ключ {$ key } отсутствует. " );
3838 }
3939
40- return self ::$ map [$ key ];
40+ return static ::$ map [$ key ];
4141 }
4242
4343 /**
4444 * @inheritDoc
4545 */
4646 public static function has (string $ key ): bool {
47- return array_key_exists ($ key , self ::$ map );
47+ return array_key_exists ($ key , static ::$ map );
4848 }
4949
5050 /**
5151 * @inheritDoc
5252 */
5353 public static function getMap (string $ key = '' ): array {
5454 if (empty ($ key )) {
55- return self ::$ map ;
55+ return static ::$ map ;
5656 }
5757
5858 if (!self ::has ($ key )) {
5959 throw new InvalidArgumentException ("Ключ {$ key } отсутствует. " );
6060 }
6161
62- return [$ key => self ::$ map [$ key ]];
62+ return [$ key => static ::$ map [$ key ]];
6363 }
64- }
64+ }
You can’t perform that action at this time.
0 commit comments