OAuthBase.php 474 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Stripe\Error\OAuth;
  3. class OAuthBase extends \Stripe\Error\Base
  4. {
  5. public function __construct(
  6. $code,
  7. $description,
  8. $httpStatus = null,
  9. $httpBody = null,
  10. $jsonBody = null,
  11. $httpHeaders = null
  12. ) {
  13. parent::__construct($description, $httpStatus, $httpBody, $jsonBody, $httpHeaders);
  14. $this->code = $code;
  15. }
  16. public function getErrorCode()
  17. {
  18. return $this->code;
  19. }
  20. }