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