| 1 | <?php | ||
| 15 | class RequestFactory | ||
| 16 | { | ||
| 17 | /** | ||
| 18 | * Creates a PSR-7 Request instance. | ||
| 19 | * | ||
| 20 | * @param null|string $method HTTP method for the request. | ||
| 21 | * @param null|string $uri URI for the request. | ||
| 22 | * @param array $headers Headers for the message. | ||
| 23 | * @param string|resource|StreamInterface $body Message body. | ||
| 24 | * @param string $version HTTP protocol version. | ||
| 25 | * @return Request | ||
| 26 | */ | ||
| 27 | public function getRequest( | ||
| 36 | |||
| 37 | /** | ||
| 38 | * Parses simplified options. | ||
| 39 | * | ||
| 40 | * @param array $options | ||
| 41 | * @return array | ||
| 42 | */ | ||
| 43 | protected function parseOptions(array $options) : array | ||
| 54 | |||
| 55 | /** | ||
| 56 | * Creates a request using a simplified array of options. | ||
| 57 | * | ||
| 58 | * @param null|string $method | ||
| 59 | * @param null|string $uri | ||
| 60 | * @param array $options | ||
| 61 | * @return Request | ||
| 62 | */ | ||
| 63 | public function getRequestWithOptions($method, $uri, array $options = []) : Request | ||
| 75 | } | ||
| 76 |