Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function addConsumers(iterable $consumers) |
||
14 | { |
||
15 | foreach ($consumers as $consumer) { |
||
16 | $consumer->setChannel($this->ch); |
||
17 | $consumer->setConsumerTag(sprintf("PHPPROCESS_%s_%s_%s", gethostname(), getmypid(), count($this->consumers))); |
||
18 | $this->consumers[] = $consumer; |
||
19 | } |
||
49 | } |