| 1 | <?php |
||
| 5 | class Request implements RequestInterface |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The request HTTP method. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | protected $method; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The request URI. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $uri; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The request options. |
||
| 23 | * |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | protected $options; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new instance of Request class. |
||
| 30 | * |
||
| 31 | * @param string $method |
||
| 32 | * @param string $uri |
||
| 33 | * @param array $options |
||
| 34 | */ |
||
| 35 | 4 | public function __construct($method, $uri, $options = []) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | 1 | public function getMethod() |
|
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritDoc} |
||
| 52 | */ |
||
| 53 | 1 | public function getUri() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritDoc} |
||
| 60 | */ |
||
| 61 | 1 | public function getOptions() |
|
| 65 | } |
||
| 66 |