ref Исправление типов
This commit is contained in:
parent
a09fc396d8
commit
28429039a4
8 changed files with 24 additions and 98 deletions
|
|
@ -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]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue