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