public function setFromArray(array $uris)
    {
        $this->validateUris($uris);

        $this->temporaryCredentials = $this->parser->toPsrUri($uris['temporary_credentials_uri']);
        $this->authorization = $this->parser->toPsrUri($uris['authorization_uri']);
        $this->tokenCredentials = $this->parser->toPsrUri($uris['token_credentials_uri']);

        if (isset($uris['base_uri'])) {
            $this->setBase($this->parser->toPsrUri($uris['base_uri']));
        }

        if (isset($uris['callback_uri'])) {
            $this->callback = $this->parser->toPsrUri($uris['callback_uri']);
        }

        return $this;
    }
public function setFromArray(array $uris)
    {
        $this->validateUris($uris);

        $this->temporaryCredentials = $this->parser->toPsrUri($uris['temporary_credentials_uri']);
        $this->authorization = $this->parser->toPsrUri($uris['authorization_uri']);
        $this->tokenCredentials = $this->parser->toPsrUri($uris['token_credentials_uri']);

        if (isset($uris['base_uri'])) {
            $this->setBase($this->parser->toPsrUri($uris['base_uri']));
        }

        if (isset($uris['callback_uri'])) {
            $this->callback = $this->parser->toPsrUri($uris['callback_uri']);
        }

        return $this;
    }
public function setFromArray ( array $ uris ) { $ this -> validateUris ( $ uris ) ; $ this -> temporaryCredentials = $ this -> parser -> toPsrUri ( $ uris [ 'temporary_credentials_uri' ] ) ; $ this -> authorization = $ this -> parser -> toPsrUri ( $ uris [ 'authorization_uri' ] ) ; $ this -> tokenCredentials = $ this -> parser -> toPsrUri ( $ uris [ 'token_credentials_uri' ] ) ; if ( isset ( $ uris [ 'base_uri' ] ) ) { $ this -> setBase ( $ this -> parser -> toPsrUri ( $ uris [ 'base_uri' ] ) ) ; } if ( isset ( $ uris [ 'callback_uri' ] ) ) { $ this -> callback = $ this -> parser -> toPsrUri ( $ uris [ 'callback_uri' ] ) ; } return $ this ; }
Set URIs from an array.

@param array $uris

@return \Risan\OAuth1\Config\UriConfig
Set URIs from an array .