| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | 3 | public function getDumper(ConnectionConfigInterface $connection): TableDumperInterface |
|
| 46 | { |
||
| 47 | 3 | $driver = $connection->getDriver(); |
|
| 48 | |||
| 49 | switch ($driver) { |
||
| 50 | 3 | case 'mysql': |
|
| 51 | 2 | if ($this->logger) { |
|
| 52 | 1 | $this->logger->debug( |
|
| 53 | 1 | "getDumper: using mysql dumper for driver: {$driver}", |
|
| 54 | 1 | ['driver' => $driver] |
|
| 55 | ); |
||
| 56 | } |
||
| 57 | 2 | return new MysqlTableDumper($this->processPool, $connection); |
|
| 58 | default: |
||
| 59 | 1 | throw new InvalidArgumentException("getDumper: no dumper found for driver: `{$driver}`"); |
|
| 60 | } |
||
| 63 |