| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 19 | 764 | public function __construct( |
|
| 20 | string $driver, |
||
| 21 | string $host, |
||
| 22 | string|null $databaseName = 'postgres', |
||
| 23 | string $port = '5432', |
||
| 24 | array $options = [] |
||
| 25 | ) { |
||
| 26 | 764 | if (empty($databaseName)) { |
|
| 27 | 2 | $databaseName = 'postgres'; |
|
| 28 | } |
||
| 29 | |||
| 30 | 764 | parent::__construct($driver, $host, $databaseName, $port, $options); |
|
| 31 | } |
||
| 33 |