This commit is contained in:
2021-01-19 18:58:09 +08:00
parent 602bf0cf76
commit 58c3705910
2 changed files with 35 additions and 1 deletions
+10
View File
@@ -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