UnknownStorageAdapterException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 1
eloc 4
c 2
b 0
f 1
dl 0
loc 7
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace hamburgscleanest\GuzzleAdvancedThrottle\Exceptions;
4
5
use hamburgscleanest\GuzzleAdvancedThrottle\Cache\Interfaces\StorageInterface;
6
use hamburgscleanest\GuzzleAdvancedThrottle\Helpers\InterfaceHelper;
7
8
class UnknownStorageAdapterException extends \RuntimeException
9
{
10 2
    public function __construct(string $adapterName, array $additionalAdapters)
11
    {
12 2
        parent::__construct(
13 2
            'Unknown storage adapter "' . $adapterName . '".' . \PHP_EOL .
14 2
                'Available adapters: ' . \implode(', ', $additionalAdapters + InterfaceHelper::getImplementations(StorageInterface::class))
15
        );
16 2
    }
17
}
18