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