| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Factory |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Creates and returns a database manager. |
||
| 25 | * |
||
| 26 | * @param \Aimeos\Base\Config\Iface $config Configuration class instance |
||
| 27 | * @param string $type Name of the manager |
||
| 28 | * @return \Aimeos\Base\DB\Manager\Iface Instance of a database manager |
||
| 29 | * @throws \Aimeos\Base\DB\Exception if database manager class isn't found |
||
| 30 | */ |
||
| 31 | public static function create( \Aimeos\Base\Config\Iface $config, $type = 'PDO' ) |
||
| 42 |