| Total Complexity | 8 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 46.15% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | abstract class ConnectionConfig |
||
| 15 | { |
||
| 16 | use RestoreStateTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var array<non-empty-string> |
||
|
|
|||
| 20 | */ |
||
| 21 | protected array $nonPrintableOptions = [ |
||
| 22 | // Postgres and MySQL |
||
| 23 | 'password', |
||
| 24 | // IBM, ODBC and DB2 |
||
| 25 | 'PWD', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param non-empty-string|null $user |
||
| 30 | 60 | * @param non-empty-string|null $password |
|
| 31 | */ |
||
| 32 | public function __construct( |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return non-empty-string|null |
||
| 39 | 62 | */ |
|
| 40 | public function getUsername(): ?string |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return non-empty-string|null |
||
| 47 | 62 | */ |
|
| 48 | public function getPassword(): ?string |
||
| 51 | } |
||
| 52 | |||
| 53 | public function __debugInfo(): array |
||
| 56 | } |
||
| 57 | |||
| 58 | protected function toArray(bool $secure = true): array |
||
| 73 |