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