| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class ServiceFactory { |
||
| 13 | |||
| 14 | const CLASS_MAP = [ |
||
| 15 | 'orders' => \Lifeboat\Services\Orders::class |
||
| 16 | ]; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param Connector $connector |
||
| 20 | * @param string $service |
||
| 21 | * @return ApiService|null |
||
| 22 | */ |
||
| 23 | public static function inst(Connector $connector, string $service): ?ApiService |
||
| 32 |