1 | <?php |
||
25 | class QueueInteropCommandQueue extends AbstractCommandQueue |
||
26 | { |
||
27 | /** |
||
28 | * Queue context. |
||
29 | * |
||
30 | * @var PsrContext |
||
31 | */ |
||
32 | private $context; |
||
33 | |||
34 | /** |
||
35 | * @var PsrDestination |
||
36 | */ |
||
37 | private $destination; |
||
38 | |||
39 | /** |
||
40 | * EnqueueCommandBus constructor. |
||
41 | * |
||
42 | * @param CommandSerializer $serializer |
||
43 | * @param PsrContext $context |
||
44 | * @param PsrDestination $destination |
||
45 | */ |
||
46 | public function __construct(CommandSerializer $serializer, PsrContext $context, PsrDestination $destination) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | final public function send(Command $command): void |
||
67 | |||
68 | /** |
||
69 | * Get message from command. |
||
70 | * |
||
71 | * @param Command $command |
||
72 | * |
||
73 | * @return PsrMessage |
||
74 | */ |
||
75 | protected function getMessage(Command $command): PsrMessage |
||
79 | |||
80 | /** |
||
81 | * Get message producer. |
||
82 | * |
||
83 | * @return PsrProducer |
||
84 | */ |
||
85 | protected function getMessageProducer(): PsrProducer |
||
89 | } |
||
90 |