| Total Complexity | 3 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class DsnConnectionConfig extends ConnectionConfig implements ProvidesSourceString |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var non-empty-string |
||
|
|
|||
| 21 | * |
||
| 22 | * @psalm-allow-private-mutation |
||
| 23 | */ |
||
| 24 | public string $dsn; |
||
| 25 | |||
| 26 | private ?string $database = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param non-empty-string|\Stringable $dsn |
||
| 30 | * @param non-empty-string|null $user |
||
| 31 | * @param non-empty-string|null $password |
||
| 32 | */ |
||
| 33 | public function __construct( |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getSourceString(): string |
||
| 49 | } |
||
| 50 | |||
| 51 | public function getDsn(): string |
||
| 56 |