Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
15 | class RabbitMQFacade extends AbstractFacade |
||
16 | { |
||
17 | /** |
||
18 | * Initiate the exchanges and queues in RabbitMQ |
||
19 | * |
||
20 | * @api |
||
21 | */ |
||
22 | public function init(): void |
||
23 | { |
||
24 | $this->getFactory()->createBootstrapper()->boot(); |
||
25 | } |
||
26 | |||
27 | public function runWorker(): void |
||
30 | } |
||
31 | |||
32 | public function close(): void |
||
33 | { |
||
34 | $this->getFactory()->getConnectionProvider()->getConnection()->close(); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @param \DataProvider\RabbitMqMessageDataProvider $messageDataProvider |
||
39 | */ |
||
40 | public function sendMessage(RabbitMqMessageDataProvider $messageDataProvider): void |
||
41 | { |
||
42 | $this->getFactory()->getMessageProvider()->sendMessage($messageDataProvider); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param \DataProvider\RabbitMqMessageCollectionDataProvider $messageCollectionDataProvider |
||
47 | */ |
||
48 | public function sendMessages(RabbitMqMessageCollectionDataProvider $messageCollectionDataProvider): void |
||
51 | } |
||
52 | } |
||
53 |