| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 2 | public function delete(Deletion $command): ExchangeInterface |
|
| 42 | { |
||
| 43 | 2 | $this->connection->send( |
|
| 44 | 2 | $this->connection->protocol()->exchange()->delete( |
|
| 45 | 2 | $this->channel, |
|
| 46 | 1 | $command |
|
| 47 | ) |
||
| 48 | ); |
||
| 49 | |||
| 50 | 2 | if ($command->shouldWait()) { |
|
| 51 | 2 | $this->connection->wait('exchange.delete-ok'); |
|
| 52 | } |
||
| 53 | |||
| 54 | 2 | return $this; |
|
| 55 | } |
||
| 57 |