Total Complexity | 1 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | class ServerRequestFactory implements ServerRequestFactoryInterface |
||
16 | { |
||
17 | /** |
||
18 | * Create a new server request. |
||
19 | * |
||
20 | * Note that server-params are taken precisely as given - no parsing/processing |
||
21 | * of the given values is performed, and, in particular, no attempt is made to |
||
22 | * determine the HTTP method or URI, which must be provided explicitly. |
||
23 | * |
||
24 | * @param string $method The HTTP method associated with the request. |
||
25 | * @param UriInterface|string $uri The URI associated with the request. If |
||
26 | * the value is a string, the factory MUST create a UriInterface |
||
27 | * instance based on it. |
||
28 | * @param array $serverParams Array of SAPI parameters with which to seed |
||
29 | * the generated request instance. |
||
30 | * |
||
31 | * @return ServerRequest|ServerRequestInterface |
||
32 | */ |
||
33 | 16 | public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface |
|
38 |