src/ExchangeRateProvider/ProviderChain.php
public function addExchangeRateProvider(ExchangeRateProvider $provider) : self
    {
        $hash = spl_object_hash($provider);
        $this->providers[$hash] = $provider;

        return $this;
    }
public function addExchangeRateProvider(ExchangeRateProvider $provider) : self
    {
        $hash = spl_object_hash($provider);
        $this->providers[$hash] = $provider;

        return $this;
    }
public function addExchangeRateProvider ( ExchangeRateProvider $ provider ) : self { $ hash = spl_object_hash ( $ provider ) ; $ this -> providers [ $ hash ] = $ provider ; return $ this ; }
Adds an exchange rate provider to the chain.

If the provider is already registered, this method does nothing.

@param ExchangeRateProvider $provider The exchange rate provider to add.

@return ProviderChain This instance, for chaining.
Adds an exchange rate provider to the chain .