| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function connect() |
||
| 24 | 1 | { |
|
| 25 | 1 | $this->disconnect(); |
|
| 26 | 1 | $key = $this->getConfigurationValue('key'); |
|
| 27 | 1 | $secret = $this->getConfigurationValue('secret'); |
|
| 28 | $region = $this->getConfigurationValue('region'); |
||
| 29 | 1 | $this->instance = new SqsClient([ |
|
| 30 | 1 | 'key' => $key, |
|
| 31 | 1 | 'secret' => $secret, |
|
| 32 | 1 | 'region' => $region, |
|
| 33 | 1 | ]); |
|
| 34 | return $this; |
||
| 35 | 1 | } |
|
| 51 |