public function configure(array $config = []):void
    {
        $config = array_intersect_key($config, array_flip(['rpcHost', 'rpcPort', 'rpcPassword', 'rpcBaseRoute']));

        foreach ($config as $key => $value)
        {
            $this->{$key} = $value;
        }
    }
public function configure(array $config = []):void
    {
        $config = array_intersect_key($config, array_flip(['rpcHost', 'rpcPort', 'rpcPassword', 'rpcBaseRoute']));

        foreach ($config as $key => $value)
        {
            $this->{$key} = $value;
        }
    }
public function configure ( array $ config = [ ] ) : void { $ config = array_intersect_key ( $ config , array_flip ( [ 'rpcHost' , 'rpcPort' , 'rpcPassword' , 'rpcBaseRoute' ] ) ) ; foreach ( $ config as $ key => $ value ) { $ this -> { $ key } = $ value ; } }
Applies configuration options.

@param array $config Configuration options:
rpcHost: The hostname of the service (must include http://)
rpcPort: The port number the service is listening on
rpcPassword: The password for JSON-RPC interface
rpcBaseRoute: The base path for accessing the service
Applies configuration options .