Geocoder\Laravel\Providers\GeocoderService::getAdapterClass PHP Method

getAdapterClass() private method

Get the required Adapter class name for the current provider. It will select a specific adapter if required, handle the Chain provider, and return the default configured adapter if non of the above are true.
private getAdapterClass ( $provider ) : string
return string
    private function getAdapterClass($provider)
    {
        $specificAdapters = collect(['Geocoder\\Provider\\GeoIP2' => 'Geocoder\\Adapter\\GeoIP2Adapter', 'Geocoder\\Provider\\MaxMindBinary' => null]);
        if ($specificAdapters->has($provider)) {
            return $specificAdapters->get($provider);
        }
        return config('geocoder.adapter');
    }