| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 13 | class MySqlConnector extends BaseConnector |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * Create a new PDO connection instance. |
||
| 17 | * |
||
| 18 | * @param string $dsn |
||
| 19 | * @param string $username |
||
| 20 | * @param string $password |
||
| 21 | * @param array $options |
||
| 22 | * |
||
| 23 | * @return \PDO |
||
| 24 | * @throws \SwooleTW\Http\Coroutine\ConnectionException |
||
| 25 | */ |
||
| 26 | protected function createPdoConnection($dsn, $username, $password, $options) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Handle an exception that occurred during connect execution. |
||
| 33 | * |
||
| 34 | * @param \Throwable $e |
||
| 35 | * @param string $dsn |
||
| 36 | * @param string $username |
||
| 37 | * @param string $password |
||
| 38 | * @param array $options |
||
| 39 | * |
||
| 40 | * @return \PDO |
||
| 41 | * @throws \Throwable |
||
| 42 | */ |
||
| 43 | protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, $password, $options) |
||
| 53 |