public function getProviderGatewayByName($name)
    {
        foreach ($this->providerGateways as $provider) {
            if ($provider->getName() === $name) {
                return $provider;
            }
        }

        return null;
    }
public function getProviderGatewayByName($name)
    {
        foreach ($this->providerGateways as $provider) {
            if ($provider->getName() === $name) {
                return $provider;
            }
        }

        return null;
    }
public function getProviderGatewayByName ( $ name ) { foreach ( $ this -> providerGateways as $ provider ) { if ( $ provider -> getName ( ) === $ name ) { return $ provider ; } } return null ; }
Returns the provider gateway by the given name.

@param string $name
@return ProviderGatewayContract
Returns the provider gateway by the given name .