| Conditions | 5 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function getConnectionParameters () : array |
||
| 51 | { |
||
| 52 | $this->connectionParameters = [ |
||
| 53 | "driver" => $this->driver, |
||
| 54 | "user" => $this->user, |
||
| 55 | "password" => $this->password |
||
| 56 | ]; |
||
| 57 | |||
| 58 | if ( isset( $this->path ) && $this->path !== "" ) { |
||
| 59 | $this->connectionParameters["path"] = $this->path; |
||
| 60 | } |
||
| 61 | |||
| 62 | if ( isset( $this->tableName ) && $this->tableName !== "" ) { |
||
| 63 | $this->connectionParameters["tableName"] = $this->tableName; |
||
| 64 | } |
||
| 65 | |||
| 66 | $this->connectionParameters["memory"] = $this->memory; |
||
| 67 | |||
| 68 | return $this->connectionParameters; |
||
| 69 | } |
||
| 76 |