Validator.php 562 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Validator
  4. * PHP version 5
  5. *
  6. * @category Class
  7. * @package WechatPay
  8. * @author WeChat Pay Team
  9. * @link https://pay.weixin.qq.com
  10. */
  11. namespace WechatPay\GuzzleMiddleware;
  12. use Psr\Http\Message\ResponseInterface;
  13. /**
  14. * Interface abstracting Validator.
  15. *
  16. * @package WechatPay
  17. * @author WeChat Pay Team
  18. */
  19. interface Validator
  20. {
  21. /**
  22. * Validate Response
  23. *
  24. * @param ResponseInterface $response Api response to validate
  25. *
  26. * @return bool
  27. */
  28. public function validate(ResponseInterface $response);
  29. }