MAKS\AmqpAgent\Worker\WorkerCommandTrait
A trait containing the implementation of the workers command interface/functions.
Synopsis
- // members
- public static string $commandPrefix = AmqpAgentParameters::COMMAND_PREFIX;
- public static array $commandSyntax = AmqpAgentParameters::COMMAND_SYNTAX;
- // methods
- public static array makeCommand()
- public static bool isCommand()
- public static bool hasCommand()
- public static mixed getCommand()
Hierarchy
Used by
Coverage
Methods | 0% | 0 / 4 |
Lines | 0% | / |
Members
public
- $commandPrefix
—
string
The prefix that should be used to define an array as a command. - $commandSyntax
—
array
The recommended way of defining a command array.
Methods
public
- getCommand() — Returns the content of a specific key in the command array, used for example to get the additional parameters.
- hasCommand() — Checks whether a specific command (command name) exists in the command array.
- isCommand() — Checks whether an array is a command following the recommended pattern.
- makeCommand() — Constructs a command from passed data to a command array following the recommended pattern.
History
-
2021-01-12T21:10:22+00:00 (commit #cb96ae1)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Update worker command trait * Refactor useless code * Fix typos * Update DocBlocks
-
2021-01-12T21:10:21+00:00 (commit #d09424b)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Add strict types declaration * Add declare(strict_types=1) to all files * Fix file header DocBlock spacing of all files
-
2020-09-25T20:23:32+00:00 (commit #24fc16b)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Update worker command trait * Make use of the newly created AmqpAgentParameters class
-
2020-09-23T18:47:06+00:00 (commit #1a3f203)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Fix typos and update DocBlocks * Fix some typos in DockBlocks and other parts of the codebase * Add examples to classes DocBlocks
-
2020-06-13T05:50:47+00:00 (commit #afcd511)
Author: Marwan Al-Soltany (MarwanAlsoltany@gmail.com) / Commiter: Marwan Al-Soltany (MarwanAlsoltany@gmail.com)
Implement the abstract worker * Add AbstractWorker.php * Add WorkerMutationTrait.php * Add WorkerCommandTrait.php