AbstractCommand Class
Aurora\Console Namespace
Interfaces
Traits
Properties
signature
Command signature
protected $signature = '': string
params
Commands array
protected $params = []: array
arguments
Command arguments
protected $arguments = '': string
Constructor
__construct
Constructor
Parameters
array
$params
— Array of command-line arguments
Signature
public function __construct(array $params)
Methods
__construct
Constructor
Parameters
-
array
$params
— Array of command-line arguments
Signature
public function __construct(array $params)
option
Get the value of an option array entry
Parameters
-
string
$name
— Option name, without the starting hypens -
mixed
$default
— Default value
Return Value
mixed
Signature
protected function option(string $name, mixed $default)
argument
Get the value of an argument array entry
Parameters
-
string
$name
— Argument name -
mixed
$default
— Default value
Return Value
mixed
Signature
protected function argument(string $name, mixed $default)
onCreate
Overrideable initialization callback
Return Value
$this
Signature
public function onCreate()
check
Check against command signature
Return Value
bool
Signature
public function check(): bool