| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function __construct( |
||
| 28 | string $host, |
||
| 29 | string $port, |
||
| 30 | string $name, |
||
| 31 | string $user, |
||
| 32 | string $pass |
||
| 33 | ) { |
||
| 34 | $this->connection = DriverManager::getConnection( |
||
| 35 | [ |
||
| 36 | 'driver' => 'pdo_mysql', |
||
| 37 | 'host' => $host, |
||
| 38 | 'port' => $port, |
||
| 39 | 'user' => $user, |
||
| 40 | 'password' => $pass, |
||
| 41 | ] |
||
| 42 | ); |
||
| 43 | |||
| 44 | $this->name = $name; |
||
| 45 | |||
| 46 | parent::__construct(); |
||
| 47 | } |
||
| 79 |