Total Complexity | 4 |
Total Lines | 51 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class AccessKeyCredential implements CredentialsInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $accessKeyId; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | private $accessKeySecret; |
||
25 | |||
26 | /** |
||
27 | * AccessKeyCredential constructor. |
||
28 | * |
||
29 | * @param string $accessKeyId Access key ID |
||
30 | * @param string $accessKeySecret Access Key Secret |
||
31 | * |
||
32 | * @throws ClientException |
||
33 | */ |
||
34 | 111 | public function __construct($accessKeyId, $accessKeySecret) |
|
35 | { |
||
36 | 111 | CredentialFilter::AccessKey($accessKeyId, $accessKeySecret); |
|
37 | |||
38 | 103 | $this->accessKeyId = $accessKeyId; |
|
39 | 103 | $this->accessKeySecret = $accessKeySecret; |
|
40 | 103 | } |
|
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | 75 | public function getAccessKeyId() |
|
46 | { |
||
47 | 75 | return $this->accessKeyId; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 73 | public function getAccessKeySecret() |
|
54 | { |
||
55 | 73 | return $this->accessKeySecret; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | 7 | public function __toString() |
|
64 | } |
||
65 | } |
||
66 |