Свойство | Тип | Описание | |
---|---|---|---|
$commands |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
addCommand ( string $name, array $arguments = [] ) | Create a new command and add it to the queue | |
getCommands ( ) : |
Get all commands on the queue | |
getQueueSize ( ) : integer | Returns the number of commands in the queue | |
getWork ( ) : |
Get the next command and remove it from the queue | |
purge ( ) | Purge the command queue | |
queueCommand ( |
Add a command to the queue |
public addCommand ( string $name, array $arguments = [] ) | ||
$name | string | |
$arguments | array |
public getCommands ( ) : |
||
Результат |
public getQueueSize ( ) : integer | ||
Результат | integer |
public queueCommand ( |
||
$command |