Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
8 | class SqsQueueStoreConnection extends AbstractQueueStoreConnection |
||
9 | { |
||
10 | /** |
||
11 | * SqsQueueStoreConnection constructor. |
||
12 | * |
||
13 | * @param array $configuration |
||
14 | 2 | */ |
|
15 | public function __construct(array $configuration = []) |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @return $this |
||
22 | 1 | */ |
|
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 | } |
|
36 | |||
37 | /** |
||
38 | * Returns the connection instance. |
||
39 | * |
||
40 | * @return SqsClient |
||
41 | */ |
||
42 | public function getInstance() |
||
49 | 1 | } |
|
50 | } |
||
51 |