Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 15 |
Ratio | 100 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
25 | 1 | View Code Duplication | public function declare(Declaration $command): ExchangeInterface |
26 | { |
||
27 | 1 | $this->connection->send( |
|
28 | 1 | $this->connection->protocol()->exchange()->declare( |
|
29 | 1 | $this->channel, |
|
30 | 1 | $command |
|
31 | ) |
||
32 | ); |
||
33 | |||
34 | 1 | if ($command->shouldWait()) { |
|
35 | 1 | $this->connection->wait('exchange.declare-ok'); |
|
36 | } |
||
37 | |||
38 | 1 | return $this; |
|
39 | } |
||
40 | |||
57 |