StripeClientInterface.php 601 B

123456789101112131415161718192021
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Interface for a Stripe client.
  5. */
  6. interface StripeClientInterface extends BaseStripeClientInterface
  7. {
  8. /**
  9. * Sends a request to Stripe's API.
  10. *
  11. * @param 'delete'|'get'|'post' $method the HTTP method
  12. * @param string $path the path of the request
  13. * @param array $params the parameters of the request
  14. * @param array|\Stripe\Util\RequestOptions $opts the special modifiers of the request
  15. *
  16. * @return \Stripe\StripeObject the object returned by Stripe's API
  17. */
  18. public function request($method, $path, $params, $opts);
  19. }