Total Complexity | 4 |
Total Lines | 59 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
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 = []) |
|
36 | { |
||
37 | 4 | $this->method = $method; |
|
38 | 4 | $this->uri = $uri; |
|
39 | 4 | $this->options = $options; |
|
40 | 4 | } |
|
41 | |||
42 | /** |
||
43 | * {@inheritdoc} |
||
44 | */ |
||
45 | 1 | public function getMethod() |
|
46 | { |
||
47 | 1 | return $this->method; |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | 1 | public function getUri() |
|
54 | { |
||
55 | 1 | return $this->uri; |
|
56 | } |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | 1 | public function getOptions() |
|
64 | } |
||
65 | } |
||
66 |