| Total Complexity | 8 |
| Total Lines | 72 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class Reader |
||
| 10 | {
|
||
| 11 | /** |
||
| 12 | * @var SsmClient |
||
| 13 | */ |
||
| 14 | private $client; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param SsmClient $client |
||
| 18 | */ |
||
| 19 | public function __construct(SsmClient $client) |
||
| 20 | {
|
||
| 21 | $this->client = $client; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @see https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-ssm-2014-11-06.html#getparametersbypath |
||
| 26 | * @param string $path |
||
| 27 | * @return mixed[] |
||
| 28 | */ |
||
| 29 | public function read(string $path): array |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param string $path |
||
| 44 | * @return Generator|string[][] |
||
| 45 | */ |
||
| 46 | private function getParameters(string $path) |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @see https://docs.aws.amazon.com/de_de/systems-manager/latest/APIReference/API_GetParametersByPath.html#API_GetParametersByPath_RequestParameters |
||
| 63 | * |
||
| 64 | * @param string $path |
||
| 65 | * @param string|null $nextToken |
||
| 66 | * @return Result|mixed |
||
| 67 | */ |
||
| 68 | private function getParametersByPath(string $path, string $nextToken = null) |
||
| 81 | } |
||
| 82 | } |