Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
parse ( ) |
public __construct ( |
||
$command | The command. | |
$rawArgs | Webmozart\Console\Api\Args\RawArgs | The raw console arguments. |
public getCommand ( ) : |
||
Результат | The command. |
public getParseError ( ) : Webmozart\Console\Api\Args\CannotParseArgsException | ||
Результат | Webmozart\Console\Api\Args\CannotParseArgsException | The parse error or `null` if the arguments were parsed successfully. |
public getParsedArgs ( ) : |
||
Результат | The parsed console arguments or `null` if the console arguments cannot be parsed. |
public getRawArgs ( ) : Webmozart\Console\Api\Args\RawArgs | ||
Результат | Webmozart\Console\Api\Args\RawArgs | The raw console arguments. |
public isParsable ( ) : boolean | ||
Результат | boolean | Returns `true` if the console arguments can be parsed and `false` if a parse error occurred. |