| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class AdapterFactory |
||
| 8 | { |
||
| 9 | /** @var array<string, string> */ |
||
| 10 | private static array $adapters = [ |
||
| 11 | GistAdapter::TYPE => GistAdapter::class, |
||
| 12 | YamlAdapter::TYPE => YamlAdapter::class |
||
| 13 | ]; |
||
| 14 | |||
| 15 | public static function getAdapter(string $adapterType, array $config, Client $client): Adapter |
||
| 33 |