| Total Complexity | 4 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class SwooleMySQLConnection extends MySqlConnection |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The active swoole mysql connection. |
||
| 13 | * |
||
| 14 | * @var SwoolePDO |
||
| 15 | */ |
||
| 16 | protected $pdo; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The active swoole mysql used for reads. |
||
| 20 | * |
||
| 21 | * @var SwoolePDO |
||
| 22 | */ |
||
| 23 | protected $readPdo; |
||
| 24 | |||
| 25 | public function getDriverName() |
||
| 26 | { |
||
| 27 | return 'Swoole Coroutine MySQL'; |
||
| 28 | } |
||
| 29 | |||
| 30 | protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, \Closure $callback) |
||
| 39 | } |
||
| 40 | } |