ResponseInterface.php 642 B

123456789101112131415161718192021222324
  1. <?php
  2. namespace OAuth2;
  3. /**
  4. * Interface which represents an object response. Meant to handle and display the proper OAuth2 Responses
  5. * for errors and successes
  6. *
  7. * @see OAuth2\Response
  8. */
  9. interface ResponseInterface
  10. {
  11. public function addParameters(array $parameters);
  12. public function addHttpHeaders(array $httpHeaders);
  13. public function setStatusCode($statusCode);
  14. public function setError($statusCode, $name, $description = null, $uri = null);
  15. public function setRedirect($statusCode, $url, $state = null, $error = null, $errorDescription = null, $errorUri = null);
  16. public function getParameter($name);
  17. }