public function setAuthHeader($params)
    {
        if (is_array($params)) {
            $this->authHeader = $this->toHeader($params);
        } else {
            if (strpos($params, 'Authorization: ') !== false) {
                $params = str_replace('Authorization: ', '', $params);
            }

            $this->authHeader = $params;
        }
    }
public function setAuthHeader($params)
    {
        if (is_array($params)) {
            $this->authHeader = $this->toHeader($params);
        } else {
            if (strpos($params, 'Authorization: ') !== false) {
                $params = str_replace('Authorization: ', '', $params);
            }

            $this->authHeader = $params;
        }
    }
public function setAuthHeader ( $ params ) { if ( is_array ( $ params ) ) { $ this -> authHeader = $ this -> toHeader ( $ params ) ; } else { if ( strpos ( $ params , 'Authorization: ' ) !== false ) { $ params = str_replace ( 'Authorization: ' , '' , $ params ) ; } $ this -> authHeader = $ params ; } }
Set authorization header parameters

@access public
@param  string|array $params OAuth signed parameters
@return void
Set authorization header parameters