class ArgOption (View source)

Methods

void
__construct()

ArgOption Constructor

mixed|Collection|null
getParameter(string $key, mixed $default = null)

Retrieves a parameter

Collection|mixed|null
options(string $key = null, string $default = null)

Retrieves the options of the command

Details

void __construct()

ArgOption Constructor

Return Value

void

mixed|Collection|null getParameter(string $key, mixed $default = null)

Retrieves a parameter

Parameters

string $key
mixed $default

Return Value

mixed|Collection|null

Collection|mixed|null options(string $key = null, string $default = null)

Retrieves the options of the command

Parameters

string $key
string $default

Return Value

Collection|mixed|null