Command
class
Command
A parsed command
- Copyright
- 2016 Appertly contributors
- License
- MIT
Constructors / Destructors
Returns | Signature and Description |
---|---|
void | __construct ( , , )Creates a new Command |
Instance Methods
Returns | Signature and Description |
---|---|
ImmVector <string > | Gets the arguments |
ImmMap <string ,mixed > | Gets the options |
string | Gets the program |
Method Details
__construct
public function
__construct
(string
$program
, ImmMap
<string
,mixed
> $options
, ImmVector
<string
> $arguments
)Creates a new Command
Name | Type | Description |
---|---|---|
$program | string | The program |
$options | ImmMap <string ,mixed > | The parsed options |
$arguments | ImmVector <string > | The parsed arguments |
getArguments
public function
getArguments
()Gets the arguments
Type | Description |
---|---|
ImmVector <string > | The arguments |
getOptions
public function
getOptions
()Gets the options
Type | Description |
---|---|
ImmMap <string ,mixed > | The options |
getProgram
public function
getProgram
()Gets the program
Type | Description |
---|---|
string | The program |