lib: Support `isset()' and `empty()' checks on CLI params

This commit is contained in:
Eric Lippmann 2014-10-01 08:17:35 +02:00
parent 084691570e
commit fa9bd59565
1 changed files with 12 additions and 0 deletions

View File

@ -108,6 +108,18 @@ class Params
return $this->standalone;
}
/**
* Support isset() and empty() checks on options
*
* @param $name
*
* @return bool
*/
public function __isset($name)
{
return isset($this->params[$name]);
}
/**
* @see Params::get()
*/