Property | Type | Description | |
---|---|---|---|
$commands |
Method | Description | |
---|---|---|
__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 ( ) : |
||
return |
public getQueueSize ( ) : integer | ||
return | integer |
public queueCommand ( |
||
$command |