改名
This commit is contained in:
@@ -45,6 +45,16 @@ class Input
|
||||
return $this->_argv[$key] ?? $default;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
* @return bool
|
||||
*/
|
||||
public function exists($key): bool
|
||||
{
|
||||
return isset($this->_argv[$key]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $key
|
||||
* @param $value
|
||||
|
||||
Reference in New Issue
Block a user