| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 1 | public function __invoke(array $options) |
|
| 13 | { |
||
| 14 | 1 | $accountName = $options['accountName'] ?? null; |
|
| 15 | 1 | $apiKey = $options['apiKey'] ?? null; |
|
| 16 | 1 | $container = $options['container'] ?? null; |
|
| 17 | 1 | $prefix = $options['prefix'] ?? null; |
|
| 18 | |||
| 19 | 1 | $endpoint = sprintf('DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s', $accountName, $apiKey); |
|
| 20 | |||
| 21 | 1 | $proxy = ServicesBuilder::getInstance()->createBlobService($endpoint); |
|
| 22 | 1 | return new AzureAdapter($proxy, $container, $prefix); |
|
| 23 | } |
||
| 24 | } |
||
| 25 |