Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function createManipulator() : AbstractDatabaseManipulator |
||
27 | { |
||
28 | $config = $this->driverFactory->getConfig(); |
||
29 | $class = "\\yentu\\manipulators\\" . ucfirst($config['driver']); |
||
30 | if(class_exists($class)) { |
||
31 | return new $class($this->driverFactory, $this->io); |
||
32 | } else { |
||
33 | throw new DatabaseManipulatorException("Database manipulator class [$class] does not exist."); |
||
34 | } |
||
44 |