ref Исправление типов

This commit is contained in:
origami11@yandex.ru 2022-11-24 19:12:00 +03:00
parent a09fc396d8
commit 28429039a4
8 changed files with 24 additions and 98 deletions

View file

@ -34,6 +34,13 @@ class Registry {
throw new Exception('Unknown key ' . $ns . '::' . $key);
}
public function getOpt($ns, $key) {
if (isset($this->namespace[$ns]['data'][$key])) {
return $this->namespace[$ns]['data'][$key];
}
return null;
}
public function has($ns, $key) {
return isset($this->namespace[$ns]['data'][$key]);
}