public function client(string $name = 'default') : BitcoinClient
    {
        if (! array_key_exists($name, $this->clients)) {
            $config = $this->getConfig($name);

            $this->clients[$name] = $this->make($config);
        }

        return $this->clients[$name];
    }
public function client(string $name = 'default') : BitcoinClient
    {
        if (! array_key_exists($name, $this->clients)) {
            $config = $this->getConfig($name);

            $this->clients[$name] = $this->make($config);
        }

        return $this->clients[$name];
    }
public function client ( string $ name = 'default' ) : BitcoinClient { if ( ! array_key_exists ( $ name , $ this -> clients ) ) { $ config = $ this -> getConfig ( $ name ) ; $ this -> clients [ $ name ] = $ this -> make ( $ config ) ; } return $ this -> clients [ $ name ] ; }
Gets client instance by name or creates if not exists.

@param  string  $name

@return \Denpa\Bitcoin\Client
Gets client instance by name or creates if not exists .