Method |
Description |
|
__construct ( string | integer $name ) : Option |
|
|
__toString ( ) : string |
|
|
addAlias ( string $alias ) : Option |
|
|
getAliases ( ) : string[] |
|
|
getDefault ( ) : mixed |
|
|
getDescription ( ) : string |
|
|
getHelp ( ) : string |
|
|
getName ( ) : string | integer |
|
|
getNeeds ( ) : string[] |
Get the current set of this option's requirements |
|
getType ( ) : integer |
|
|
getValue ( ) : mixed |
|
|
hasNeeds ( array $optionsList ) : boolean | array |
Check to see if requirements list for option are met |
|
isBoolean ( ) : boolean |
|
|
isFile ( ) : boolean |
|
|
isIncrement ( ) : boolean |
|
|
isRequired ( ) : boolean |
|
|
map ( Closure | string $value ) : Option |
|
|
parseFilePath ( string $file_path ) : string | array |
|
|
setBoolean ( boolean $bool = true ) : Option |
|
|
setDefault ( mixed $value ) : Option |
|
|
setDescription ( string $description ) : Option |
|
|
setFileRequirements ( boolean $require_exists = true, boolean $allow_globbing = true ) : void |
Require that the argument is a file. This will
make sure the argument is a valid file, will expand
the file path provided to a full path (e.g. map relative
paths), and in the case where $allow_globbing is set,
supports file globbing and returns an array of matching
files. |
|
setIncrement ( integer $max ) : Option |
|
|
setMap ( Closure $map ) : Option |
|
|
setNeeds ( string $option ) : Option |
Set an option as required |
|
setRequired ( boolean $bool = true ) : Option |
|
|
setRule ( Closure | string $rule ) : Option |
|
|
setTitle ( string $title ) : Option |
|
|
setValue ( mixed $value ) |
|
|
validate ( mixed $value ) : boolean |
|
|