Params helper
Params::process
Process the argument/parameter list according to the arguments definition
Parameters
- $definitions (array): The argument definition list
Returns
Params::get
Get the parameter value.
Parameters
- $param (string): Parameter name
Returns
- false (bool): Return false when argument is missing
- true (bool): Return true when a single parameter is present
- string: Return an string when parameter with value is present. The string contains the parameter value.
Params::set
Set a parameter value outside the command line
Parameters
- $param (string): The parameter name
- $value (string): The parameter value
Returns
Params::validate
Perform the parameters validation
Returns
- array: An array of those parameters that did not passed the validation.