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