Conditions | 4 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function getConnectionParameters () : array |
||
51 | { |
||
52 | $this->connectionParameters = []; |
||
53 | |||
54 | $this->connectionParameters["driver"] = $this->driver; |
||
55 | $this->connectionParameters["user"] = $this->user; |
||
56 | $this->connectionParameters["password"] = $this->password; |
||
57 | $this->connectionParameters["host"] = $this->host; |
||
58 | $this->connectionParameters["port"] = $this->port; |
||
59 | $this->connectionParameters["dbname"] = $this->dbName; |
||
60 | |||
61 | foreach ( $this->extraParameters as $parameterName => $localVariable ) { |
||
62 | if ( isset( $localVariable ) && $localVariable !== "" ) { |
||
63 | $this->connectionParameters[$parameterName] = $localVariable; |
||
64 | } |
||
65 | } |
||
66 | |||
67 | return $this->connectionParameters; |
||
68 | } |
||
70 |