Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function addExchange(ExchangeDeclaration $exchangeDeclaration) |
||
15 | { |
||
16 | if (isset($this->exchanges[$exchangeDeclaration->name])) { |
||
17 | throw new \InvalidArgumentException(sprintf('Exchange declartion with %s name already registerd', $exchangeDeclaration->name)); |
||
18 | } |
||
19 | $this->exchanges[$exchangeDeclaration->name] = $exchangeDeclaration; |
||
20 | } |
||
42 | } |