Méthode | Description | |
---|---|---|
__construct ( |
Creates a new resolved command. | |
getCommand ( ) : |
Returns the command. | |
getParseError ( ) : Webmozart\Console\Api\Args\CannotParseArgsException | Returns the error that happened during argument parsing. | |
getParsedArgs ( ) : |
Returns the parsed console arguments. | |
getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs | The raw console arguments. | |
isParsable ( ) : boolean | Returns whether the console arguments can be parsed. |
Méthode | Description | |
---|---|---|
parse ( ) |
public __construct ( |
||
$command | The command. | |
$rawArgs | Webmozart\Console\Api\Args\RawArgs | The raw console arguments. |
public getCommand ( ) : |
||
Résultat | The command. |
public getParseError ( ) : Webmozart\Console\Api\Args\CannotParseArgsException | ||
Résultat | Webmozart\Console\Api\Args\CannotParseArgsException | The parse error or `null` if the arguments were parsed successfully. |
public getParsedArgs ( ) : |
||
Résultat | The parsed console arguments or `null` if the console arguments cannot be parsed. |
public getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs | ||
Résultat | Webmozart\Console\Api\Args\RawArgs | The raw console arguments. |
public isParsable ( ) : boolean | ||
Résultat | boolean | Returns `true` if the console arguments can be parsed and `false` if a parse error occurred. |