26 $this->inner = $inner;
37 return $this->inner->getMethod();
49 $this->inner->setMethod($method);
60 return $this->inner->getUrl();
72 $this->inner->setUrl(
$url);
83 return $this->inner->getAbsoluteUrl();
95 $this->inner->setAbsoluteUrl(
$url);
106 return $this->inner->getBaseUrl();
122 $this->inner->setBaseUrl(
$url);
145 return $this->inner->getPath();
158 return $this->inner->getQueryParameters();
171 return $this->inner->getPostData();
203 return $this->inner->getRawServerValue($valueName);
215 $this->inner->setRawServerData(
$data);
228 return $this->inner->__toString();
An exception for terminatinating execution or to throw for unit testing.
getPath()
Returns the relative path.
getQueryParameters()
Returns the list of query parameters.
getAbsoluteUrl()
Returns the absolute url.
setMethod($method)
Sets the HTTP method.
getMethod()
Returns the current HTTP method.
setUrl($url)
Sets the request url.
getUrl()
Returns the request url.
__toString()
Serializes the request object as a string.
getRawServerValue($valueName)
Returns an item from the _SERVER array.
getPostData()
Returns the POST data.
setPostData(array $postData)
Sets the post data.
__construct(RequestInterface $inner)
Constructor.
setRawServerData(array $data)
Sets the _SERVER array.
setAbsoluteUrl($url)
Sets the absolute url.
setBaseUrl($url)
Sets a base url.
getBaseUrl()
Returns the current base url.
The RequestInterface represents a HTTP request.
trait MessageDecoratorTrait
This trait contains a bunch of methods, shared by both the RequestDecorator and the ResponseDecorator...
if($session===NULL) $postData