| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function connect(array $config) |
||
| 22 | { |
||
| 23 | $queue = new Account( |
||
| 24 | Arr::get($config, 'options.queue.host'), |
||
| 25 | $config['secret_id'], |
||
| 26 | $config['secret_key'] |
||
| 27 | ); |
||
| 28 | |||
| 29 | $topic = new Account( |
||
| 30 | Arr::get($config, 'options.topic.host'), |
||
| 31 | $config['secret_id'], |
||
| 32 | $config['secret_key'] |
||
| 33 | ); |
||
| 34 | |||
| 35 | return new CMQQueue($queue, $topic, $config); |
||
| 36 | } |
||
| 38 |