| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function create($exchangeName, array $options) |
||
| 22 | { |
||
| 23 | if (empty($options['arguments'])) { |
||
| 24 | unset($options['arguments']); |
||
| 25 | } |
||
| 26 | |||
| 27 | $this->client->query( |
||
| 28 | ClientInterface::METHOD_PUT, |
||
| 29 | sprintf('/api/exchanges/%s/%s', $this->vhost, $exchangeName), |
||
| 30 | $options); |
||
| 31 | $this->logger->info(sprintf('Create exchange: <info>%s</info>', $exchangeName)); |
||
| 32 | } |
||
| 33 | |||
| 57 |