MAKS\AmqpAgent\Worker\WorkerCommandTrait::makeCommand
Constructs a command from passed data to a command array following the recommended pattern.
Signature
public function makeCommand(string
$name,
string
$value,
[mixed
$parameters = NULL,
[string
$argument = 'params']] )
Parameters
$name
—
string
- The name of the command.
$value
—
string
- The value of the command.
$parameters
—
mixed
- [optional] Additional parameters to add to the command.
$argument
—
string
- [optional] The key to use to store the parameters under.
Returns
- array