Parser
class Parser
Methods
static array
parse(string $expression)
Parse the given console command definition into an array.
static string
name(string $expression)
Extract the name of the command from the expression.
static array
parameters(array $tokens)
Extract all the parameters from the tokens.
static InputArgument
parseArgument(string $token)
Parse an argument expression.
static InputOption
parseOption(string $token)
Parse an option expression.
static array
extractDescription(string $token)
Parse the token into its token and description segments.
Details
at line 18
static array
parse(string $expression)
Parse the given console command definition into an array.
at line 34
static protected string
name(string $expression)
Extract the name of the command from the expression.
at line 46
static protected array
parameters(array $tokens)
Extract all the parameters from the tokens.
at line 66
static protected InputArgument
parseArgument(string $token)
Parse an argument expression.
at line 83
static protected InputOption
parseOption(string $token)
Parse an option expression.
at line 108
static protected array
extractDescription(string $token)
Parse the token into its token and description segments.