Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function __construct(array $channelConfiguration = [], $channelName = null, MessageAdapterInterface $adapter = null) |
||
28 | { |
||
29 | $this->channelConfiguration = $channelConfiguration; |
||
30 | $this->channelName = $channelName; |
||
31 | |||
32 | if (!empty($adapter)) { |
||
33 | // The adapter needs the channel name and the configurations. |
||
34 | $adapter->setChannelName($channelName); |
||
35 | $adapter->setConfiguration($channelConfiguration); |
||
36 | |||
37 | $this->adapter = $adapter; |
||
38 | } |
||
39 | } |
||
40 | |||
54 |