RequestFactoryInterface.php 499 B

123456789101112131415161718
  1. <?php
  2. namespace Psr\Http\Message;
  3. interface RequestFactoryInterface
  4. {
  5. /**
  6. * Create a new request.
  7. *
  8. * @param string $method The HTTP method associated with the request.
  9. * @param UriInterface|string $uri The URI associated with the request. If
  10. * the value is a string, the factory MUST create a UriInterface
  11. * instance based on it.
  12. *
  13. * @return RequestInterface
  14. */
  15. public function createRequest(string $method, $uri): RequestInterface;
  16. }