DebuggerInterface.php 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Signifyd\Model\SignifydGateway\Debugger;
  7. use Exception;
  8. /**
  9. * Interface for debugging interaction with Signifyd API
  10. */
  11. interface DebuggerInterface
  12. {
  13. /**
  14. * Register debug information about accepted request to Signifyd API
  15. *
  16. * @param string $requestUrl
  17. * @param string $requestData
  18. * @param string $responseStatus
  19. * @param string $responseBody
  20. * @return void
  21. */
  22. public function success($requestUrl, $requestData, $responseStatus, $responseBody);
  23. /**
  24. * Register debug information about failed request to Signifyd API
  25. *
  26. * @param string $requestUrl
  27. * @param string $requestData
  28. * @param Exception $exception
  29. * @return mixed
  30. */
  31. public function failure($requestUrl, $requestData, Exception $exception);
  32. }