1 | <?php |
||
5 | class Request extends AbstractMessage |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $method; |
||
11 | |||
12 | const METHOD_OPTIONS = 'OPTIONS'; |
||
13 | const METHOD_GET = 'GET'; |
||
14 | const METHOD_HEAD = 'HEAD'; |
||
15 | const METHOD_POST = 'POST'; |
||
16 | const METHOD_PUT = 'PUT'; |
||
17 | const METHOD_DELETE = 'DELETE'; |
||
18 | const METHOD_PATCH = 'PATCH'; |
||
19 | |||
20 | /** |
||
21 | * @var Url |
||
22 | */ |
||
23 | protected $url; |
||
24 | |||
25 | /** |
||
26 | * @param string $protocolVersion |
||
27 | * @param string $method |
||
28 | * @param string $url |
||
29 | * @param array $headers |
||
30 | * @param string|null $content |
||
31 | */ |
||
32 | public function __construct( |
||
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getMethod() |
||
53 | |||
54 | /** |
||
55 | * @return Url |
||
56 | */ |
||
57 | public function getUrl() |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function __toString() |
||
81 | } |
||
82 |