__construct() __construct( $name, $shortName, string $description) Constructor Parameters $name $shortName string $description
setValidator() setValidator(callable $validator) Sets validator function Parameters callable $validator
matchParam() matchParam( $paramName) : boolean Checks if parameter name matches to long or short name of option Parameters $paramName Returns boolean
setRequired() setRequired(boolean $required) : $this Determines if option is required Parameters boolean $required Returns $this
validate() validate( $value) : boolean|mixed Validates option value Parameters $value Returns boolean|mixed
getValue() getValue( $args, null $default) : mixed Looks for value of option in specified arguments array. When option is not found then returns default value. Parameters $args null $default Returns mixed