| 1 | <?php |
||
| 8 | class Publisher |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Client |
||
| 12 | */ |
||
| 13 | private $client; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Client $client |
||
| 17 | */ |
||
| 18 | 2 | public function __construct(Client $client) |
|
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $queue Name of the queue to receive the job |
||
| 25 | * @param string $command FQCN for Command class to be executed by the job |
||
| 26 | * @param array $options Options for the Command class instance |
||
| 27 | */ |
||
| 28 | 2 | public function publish($queue, $command, array $options = []) |
|
| 37 | } |
||
| 38 |