protected function getAuthHeaderValue()
    {
        $value = "";
        if (isset($this->credentials['username']) && isset($this->credentials['password'])){
            $value = $this->credentials['username'].":".$this->credentials['password'];
            $value = base64_encode($value);
        }
        return static::$_AUTH_TYPE." ".$value;
    }
protected function getAuthHeaderValue()
    {
        $value = "";
        if (isset($this->credentials['username']) && isset($this->credentials['password'])){
            $value = $this->credentials['username'].":".$this->credentials['password'];
            $value = base64_encode($value);
        }
        return static::$_AUTH_TYPE." ".$value;
    }
protected function getAuthHeaderValue ( ) { $ value = "" ; if ( isset ( $ this -> credentials [ 'username' ] ) && isset ( $ this -> credentials [ 'password' ] ) ) { $ value = $ this -> credentials [ 'username' ] . ":" . $ this -> credentials [ 'password' ] ; $ value = base64_encode ( $ value ) ; } return static :: $ _AUTH_TYPE . " " . $ value ; }
Parse the Credentials or Token to build out the Auth Header Value
@return string
Parse the Credentials or Token to build out the Auth Header Value