1 | <?php |
||
11 | class Request implements RequestInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var ServerRequestCreatorInterface|null |
||
15 | */ |
||
16 | private static $serverRequestCreator = null; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $params; |
||
22 | |||
23 | /** |
||
24 | * @var resource |
||
25 | */ |
||
26 | private $stdin; |
||
27 | |||
28 | /** |
||
29 | * Constructor. |
||
30 | * |
||
31 | * @param array $params The FastCGI server params as an associative array |
||
32 | * @param resource $stdin The FastCGI stdin data as a stream resource |
||
33 | */ |
||
34 | public function __construct(array $params, $stdin) |
||
46 | |||
47 | public static function setServerRequestCreator(ServerRequestCreatorInterface $serverRequestCreator): void |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getParams() |
||
59 | |||
60 | /** |
||
61 | * {@inheritdoc} |
||
62 | */ |
||
63 | public function getQuery() |
||
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | public function getPost() |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function getCookies() |
||
114 | |||
115 | /** |
||
116 | * {@inheritdoc} |
||
117 | */ |
||
118 | public function getStdin() |
||
122 | |||
123 | /** |
||
124 | * {@inheritdoc} |
||
125 | */ |
||
126 | public function getServerRequest() |
||
147 | |||
148 | /** |
||
149 | * {@inheritdoc} |
||
150 | */ |
||
151 | public function getHttpFoundationRequest() |
||
163 | } |
||
164 |