class Command extends AbstractCommand (View source)

Traits

Properties

protected Setting $setting

Store dirname

from  AbstractCommand
protected array $namespaces

The application namespace

from  AbstractCommand
protected Argument $arg

The Arg Option instance

from  AbstractCommand

Methods

void
throwFailsCommand(string $message, string|null $command = null)

Throw fails command

void
__construct(Setting $setting, Argument $arg)

AbstractCommand constructor

mixed
call(string $command, string $action, array ...$rest)

The call command

Details

protected void throwFailsCommand(string $message, string|null $command = null)

Throw fails command

Parameters

string $message
string|null $command

Return Value

void

Exceptions

ErrorException

void __construct(Setting $setting, Argument $arg)

AbstractCommand constructor

Parameters

Setting $setting
Argument $arg

Return Value

void

mixed call(string $command, string $action, array ...$rest)

The call command

Parameters

string $command
string $action
array ...$rest

Return Value

mixed