/** * * @param string $redirect_uri * @param string $error * @param string $error_description * @param string $state * @param string $error_uri * @return API_OAuth2_Exception_Redirect */ public function __construct($redirect_uri, $error, $error_description = null, $state = null, $error_uri = null) { $this->redirect_uri = $redirect_uri; $this->state = $state; parent::__construct($this->http_code, $error, $error_description, $error_uri); return $this; }
/** * * @param int $http_code * @param string $realm * @param string $error * @param string $error_description * @param string $error_uri * @param string $scope * @return API_OAuth2_Exception_WWWAuthenticate */ public function __construct($http_code, $realm, $error, $error_description = null, $error_uri = null, $scope = null) { $this->realm = $realm; $this->scope = $scope; parent::__construct($http_code, $error, $error_description, $error_uri); return $this; }