| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | class DriverFactory |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * Create a driver instance. |
||
| 38 | * |
||
| 39 | * @param string $type The driver's type string. |
||
| 40 | * @param array $setting The configuration of that driver. |
||
| 41 | * |
||
| 42 | * @return DriverInterface|null |
||
| 43 | */ |
||
| 44 | 84 | public static function getInstance(string $type, array $setting) |
|
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Covert string with dashes into camel-case string. |
||
| 53 | * |
||
| 54 | * @param string $string A string with dashes. |
||
| 55 | * |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | 84 | public static function getCamelCase(string $string = ''): string |
|
| 73 |