WordFetchCommand
in package
implements
Command
Read onlyYes
FinalYes
Fetches fresh word
Table of Contents
Interfaces
- Command
- Describes behavior of a command
Properties
Methods
- __construct() : mixed
- execute() : void
- Executes command
- getArgumentsCount() : int
- Returns required parameters number
- getDescription() : string
- Returns command description
- getName() : string
- Returns command name
Properties
$useCase
private
FetchWordUseCase
$useCase
Methods
__construct()
public
__construct(FetchWordUseCase $useCase) : mixed
Parameters
- $useCase : FetchWordUseCase
execute()
Executes command
public
execute(array<string|int, mixed> $arguments, ConsoleOutput $output) : void
Parameters
- $arguments : array<string|int, mixed>
- $output : ConsoleOutput
Tags
getArgumentsCount()
Returns required parameters number
public
getArgumentsCount() : int
Tags
Return values
int —number of parameters
getDescription()
Returns command description
public
getDescription() : string
Tags
Return values
stringgetName()
Returns command name
public
getName() : string