ClientInterface.php 845 B

123456789101112131415161718192021
  1. <?php
  2. namespace Stripe\HttpClient;
  3. interface ClientInterface
  4. {
  5. /**
  6. * @param string $method The HTTP method being used
  7. * @param string $absUrl The URL being requested, including domain and protocol
  8. * @param array $headers Headers to be used in the request (full strings, not KV pairs)
  9. * @param array $params KV pairs for parameters. Can be nested for arrays and hashes
  10. * @param boolean $hasFile Whether or not $params references a file (via an @ prefix or
  11. * CurlFile)
  12. *
  13. * @throws \Stripe\Error\Api
  14. * @throws \Stripe\Error\ApiConnection
  15. * @return array An array whose first element is raw request body, second
  16. * element is HTTP status code and third array of HTTP headers.
  17. */
  18. public function request($method, $absUrl, $headers, $params, $hasFile);
  19. }