public function __construct($return_to, $access_token, $expires_in, $scope = null, $state = null)
 {
     parent::__construct();
     $this->setReturnTo($return_to);
     $this[OAuth2Protocol::OAuth2Protocol_AccessToken] = $access_token;
     $this[OAuth2Protocol::OAuth2Protocol_AccessToken_ExpiresIn] = $expires_in;
     $this[OAuth2Protocol::OAuth2Protocol_TokenType] = 'Bearer';
     if (!is_null($scope) && !empty($scope)) {
         $this[OAuth2Protocol::OAuth2Protocol_Scope] = $scope;
     }
     if (!is_null($state) && !empty($state)) {
         $this[OAuth2Protocol::OAuth2Protocol_State] = $state;
     }
 }
 public function __construct($error, $return_to = null)
 {
     parent::__construct();
     $this->setError($error);
     $this->setReturnTo($return_to);
 }