| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 7 | class ConnectionConfig extends AbstractConnectionConfig |
||
| 8 | { |
||
| 9 | const ADAPTER = 'mysql'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $host |
||
| 13 | * @param string $username |
||
| 14 | * @param string $password |
||
| 15 | * @param string $dbname |
||
| 16 | * @param int $port |
||
| 17 | */ |
||
| 18 | public function __construct(string $host, string $username, string $password, string $dbname, int $port = 3306) |
||
| 19 | { |
||
| 20 | parent::__construct($host, $username, $password, $dbname, static::ADAPTER, $port); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function generateDsn(): string |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function getAdapterConnectionClass(): string |
||
| 45 |