Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 8 | public function __construct(Connection $connection, Number $number) |
|
24 | { |
||
25 | 8 | $this->connection = $connection; |
|
26 | 8 | $this->number = $number; |
|
27 | |||
28 | $connection |
||
29 | 8 | ->send($connection->protocol()->channel()->open($number)) |
|
30 | 8 | ->wait('channel.open-ok'); |
|
31 | |||
32 | 8 | $this->exchange = new Exchange\Exchange($connection, $number); |
|
33 | 8 | $this->queue = new Queue\Queue($connection, $number); |
|
34 | 8 | $this->basic = new Basic\Basic($connection, $number); |
|
35 | 8 | $this->transaction = new Transaction\Transaction($connection, $number); |
|
36 | 8 | } |
|
79 |