protected function setAuthentication(array $config, Authentication $authentication = null)
    {
        $this->authentication = $authentication;
        if ($authentication === null) {
            $this->authentication = new Authentication();
        }

        if (isset($config['timestamp'])) {
            $this->authentication->setTimestamp($config['timestamp']);
        }

        if (isset($config['nonce'])) {
            $this->authentication->setNonce($config['nonce']);
        }
    }
protected function setAuthentication(array $config, Authentication $authentication = null)
    {
        $this->authentication = $authentication;
        if ($authentication === null) {
            $this->authentication = new Authentication();
        }

        if (isset($config['timestamp'])) {
            $this->authentication->setTimestamp($config['timestamp']);
        }

        if (isset($config['nonce'])) {
            $this->authentication->setNonce($config['nonce']);
        }
    }
protected function setAuthentication ( array $ config , Authentication $ authentication = null ) { $ this -> authentication = $ authentication ; if ( $ authentication === null ) { $ this -> authentication = new Authentication ( ) ; } if ( isset ( $ config [ 'timestamp' ] ) ) { $ this -> authentication -> setTimestamp ( $ config [ 'timestamp' ] ) ; } if ( isset ( $ config [ 'nonce' ] ) ) { $ this -> authentication -> setNonce ( $ config [ 'nonce' ] ) ; } }
Set the Authentication instance

@param array $config
@param Authentication|null $authentication
Set the Authentication instance