SignerInterface.php 637 B

12345678910111213141516171819202122232425
  1. <?php
  2. interface SignerInterface
  3. {
  4. /**
  5. * Sign the given request with the given set of credentials and returns the
  6. * signed authorization string.
  7. *
  8. * @param $credentials array the credentials to sign the request with.
  9. * @param $httpMethod string
  10. * @param $path string
  11. * @param $headers array
  12. * @param $params array
  13. * @param $options array the options for signing.
  14. * @return string The signed authorization string.
  15. */
  16. public function sign(
  17. array $credentials,
  18. $httpMethod,
  19. $path,
  20. $headers,
  21. $params,
  22. $options = array()
  23. );
  24. }