public function getClient()
    {
        $client = $this->reduceFirst(function (SearchProviderInterface $provider) {
            return $provider->getClient();
        });

        if (null === $client) {
            throw new \RuntimeException('No provider was able to return a client');
        }

        return $client;
    }
public function getClient()
    {
        $client = $this->reduceFirst(function (SearchProviderInterface $provider) {
            return $provider->getClient();
        });

        if (null === $client) {
            throw new \RuntimeException('No provider was able to return a client');
        }

        return $client;
    }
public function getClient ( ) { $ client = $ this -> reduceFirst ( function ( SearchProviderInterface $ provider ) { return $ provider -> getClient ( ) ; } ) ; if ( null === $ client ) { throw new \ RuntimeException ( 'No provider was able to return a client' ) ; } return $ client ; }
Return the client object

@return mixed
Return the client object