1 | <?php |
||
14 | final class QueueIfFailedTransport implements TransportInterface |
||
15 | { |
||
16 | public const QUEUED_HEADER = 'X-Queued-At'; |
||
17 | |||
18 | /** |
||
19 | * @var array|TransportInterface[] |
||
20 | */ |
||
21 | private $transports; |
||
22 | |||
23 | /** |
||
24 | * @var array|QueueInterface[] |
||
25 | */ |
||
26 | private $queueStorage; |
||
27 | |||
28 | /** |
||
29 | * @var bool |
||
30 | */ |
||
31 | private $useQueue = false; |
||
32 | |||
33 | /** |
||
34 | * @param TransportInterface[] $transports |
||
35 | * @param QueueInterface[] $queueStorage |
||
36 | */ |
||
37 | 5 | public function __construct(array $transports, array $queueStorage) |
|
42 | |||
43 | /** |
||
44 | * @param MessageInterface $message |
||
45 | * @throws QueueIfFailedException |
||
46 | */ |
||
47 | 5 | public function send(MessageInterface $message): void |
|
83 | } |
||
84 |