public function getRemote(array $args = []): TwitterOAuth
    {
        $default_args = $this->default_credentials;

        $args += $default_args;
        $hash = $this->remoteHash($args);

        if (isset($this->remotes[$hash])) {
            return $this->remotes[$hash];
        }
        return $this->remotes[$hash] = new TwitterOAuth(
            (string) $args['consumer_key'],
            (string) $args['consumer_secret'],
            (string) $args['access_token'],
            (string) $args['access_token_secret']
        );
    }
public function getRemote(array $args = []): TwitterOAuth
    {
        $default_args = $this->default_credentials;

        $args += $default_args;
        $hash = $this->remoteHash($args);

        if (isset($this->remotes[$hash])) {
            return $this->remotes[$hash];
        }
        return $this->remotes[$hash] = new TwitterOAuth(
            (string) $args['consumer_key'],
            (string) $args['consumer_secret'],
            (string) $args['access_token'],
            (string) $args['access_token_secret']
        );
    }
public function getRemote ( array $ args = [ ] ) : TwitterOAuth { $ default_args = $ this -> default_credentials ; $ args += $ default_args ; $ hash = $ this -> remoteHash ( $ args ) ; if ( isset ( $ this -> remotes [ $ hash ] ) ) { return $ this -> remotes [ $ hash ] ; } return $ this -> remotes [ $ hash ] = new TwitterOAuth ( ( string ) $ args [ 'consumer_key' ] , ( string ) $ args [ 'consumer_secret' ] , ( string ) $ args [ 'access_token' ] , ( string ) $ args [ 'access_token_secret' ] ) ; }
Get remote connection.

@since 17xxxx Twitter utils.

@param array $args Credentials.

@return TwitterOAuth Remote instance.
Get remote connection .