Test Failed
Pull Request — master (#8)
by Timo
03:25
created

UnknownLaravelDriverException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 2
1
<?php
2
3
namespace hamburgscleanest\GuzzleAdvancedThrottle\Exceptions;
4
5
/**
6
 * Class UnknownLaravelDriverException
7
 * @package hamburgscleanest\GuzzleAdvancedThrottle\Exceptions
8
 */
9
class UnknownLaravelDriverException extends \RuntimeException
10
{
11
12
    /**
13
     * UnknownLaravelDriverException constructor.
14
     * @param string $driverName
15
     * @param array $availableDrivers
16
     */
17
    public function __construct(string $driverName, array $availableDrivers)
18
    {
19
        parent::__construct('Unknown Laravel driver "' . $driverName . '".' . \PHP_EOL . 'Available drivers: ' . \implode(', ', $availableDrivers));
20
    }
21
}