| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class EcsRamRoleCredential implements CredentialsInterface |
||
| 14 | { |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $roleName; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Class constructor. |
||
| 23 | * |
||
| 24 | * @param string $roleName |
||
| 25 | * |
||
| 26 | * @throws ClientException |
||
| 27 | */ |
||
| 28 | 24 | public function __construct($roleName) |
|
| 29 | { |
||
| 30 | 24 | CredentialFilter::roleName($roleName); |
|
| 31 | |||
| 32 | 20 | $this->roleName = $roleName; |
|
| 33 | 20 | } |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 13 | public function getRoleName() |
|
| 39 | { |
||
| 40 | 13 | return $this->roleName; |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 15 | public function __toString() |
|
| 49 | } |
||
| 50 | } |
||
| 51 |