| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function __construct( |
||
| 22 | string $host, |
||
| 23 | int $port, |
||
| 24 | string $database, |
||
| 25 | string $username, |
||
| 26 | string $password, |
||
| 27 | array $options = [] |
||
| 28 | ) { |
||
| 29 | $this->dsn = "pgsql:host={$host};port={$port};dbname={$database};connect_timeout=2"; |
||
| 30 | $this->host = $host; |
||
| 31 | $this->port = $port; |
||
| 32 | $this->username = $username; |
||
| 33 | $this->password = $password; |
||
| 34 | $this->options = array_merge($this->options, $options); |
||
| 35 | } |
||
| 37 |