| 1 | <?php |
||
| 23 | class Request implements RequestInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var EnvironmentInterface |
||
| 27 | */ |
||
| 28 | protected $environment; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var EncodingParametersInterface |
||
| 32 | */ |
||
| 33 | protected $query; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var mixed|null |
||
| 37 | */ |
||
| 38 | protected $body; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Constructor |
||
| 42 | * |
||
| 43 | * @param EnvironmentInterface $environment |
||
| 44 | */ |
||
| 45 | 3 | public function __construct(EnvironmentInterface $environment) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | 3 | public function getEnvironment() |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @inheritdoc |
||
| 60 | */ |
||
| 61 | 3 | public function getQuery() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @param EncodingParametersInterface|null $query |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | 3 | public function setQuery(EncodingParametersInterface $query = null) |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @inheritdoc |
||
| 79 | */ |
||
| 80 | 2 | public function getBody() |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @param mixed|null $body |
||
| 87 | * @return $this |
||
| 88 | */ |
||
| 89 | 3 | public function setBody($body = null) |
|
| 95 | } |
||
| 96 |