1 | <?php |
||
17 | class TransportChain implements TransportInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var TransportInterface[] |
||
21 | */ |
||
22 | private $chain; |
||
23 | |||
24 | /** |
||
25 | * Initializes a new instance of this class. |
||
26 | */ |
||
27 | public function __construct() |
||
31 | |||
32 | /** |
||
33 | * Adds the given transport to the chain. |
||
34 | * |
||
35 | * @param TransportInterface $transport The transport to add. |
||
36 | */ |
||
37 | public function addTransport(TransportInterface $transport): void |
||
41 | |||
42 | /** |
||
43 | * Sends the message. |
||
44 | * |
||
45 | * @param array $recipients A list with all recipients that should receive the message. |
||
46 | * @param Message $message The message to send. |
||
47 | * @return void |
||
48 | */ |
||
49 | public function send(array $recipients, Message $message): void |
||
55 | } |
||
56 |