Total Complexity | 2 |
Total Lines | 16 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
12 | class InvalidDsnException extends InvalidArgumentException |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $dsn; |
||
18 | |||
19 | public function __construct(string $dsn, string $message) |
||
20 | { |
||
21 | $this->dsn = $dsn; |
||
22 | parent::__construct(sprintf('%s (%s)', $message, $dsn)); |
||
23 | } |
||
24 | |||
25 | public function getDsn(): string |
||
28 | } |
||
29 | } |
||
30 |