| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3.243 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 2 | public function getDumper(ConnectionConfigInterface $connection): TableDumperInterface |
|
| 36 | { |
||
| 37 | 2 | $driver = $connection->getDriver(); |
|
| 38 | |||
| 39 | 2 | switch ($driver) { |
|
| 40 | 2 | case 'mysql': |
|
| 41 | 1 | if ($this->logger) { |
|
| 42 | $this->logger->debug( |
||
| 43 | "getDumper: using mysql dumper for driver: {$driver}", |
||
| 44 | ['driver' => $driver] |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | 1 | return new MysqlTableDumper($this->processPool, $connection); |
|
| 48 | default: |
||
| 49 | 1 | throw new InvalidArgumentException("getDumper: no dumper found for driver: `{$driver}`"); |
|
| 50 | } |
||
| 53 |