ServerRequestDecoratorTrait uses trait:short
Trait ServerRequestDecoratorTrait
Table of Contents
Methods
- getAttribute() : mixed
- getAttributes() : mixed
- getCookieParams() : mixed
- getMethod() : string
- {@inheritdoc}
- getParsedBody() : mixed
- getQueryParams() : mixed
- getRequest() : ServerRequestInterface
- Returns the decorated request.
- getRequestTarget() : string
- {@inheritdoc}
- getServerParams() : mixed
- getUploadedFiles() : mixed
- getUri() : UriInterface
- {@inheritdoc}
- withAttribute() : mixed
- withAttributes() : ServerRequestInterface
- withCookieParams() : mixed
- withMethod() : self
- {@inheritdoc}
- withoutAttribute() : mixed
- withParsedBody() : mixed
- withQueryParams() : mixed
- withRequest() : self
- Exchanges the underlying request with another.
- withRequestTarget() : self
- {@inheritdoc}
- withUploadedFiles() : mixed
- withUri() : self
- {@inheritdoc}
Methods
getAttribute()
public
getAttribute(mixed $name[, mixed $default = null ]) : mixed
Parameters
- $name : mixed
- $default : mixed = null
Tags
getAttributes()
public
getAttributes() : mixed
Tags
getCookieParams()
public
getCookieParams() : mixed
Tags
getMethod()
{@inheritdoc}
public
getMethod() : string
Return values
stringgetParsedBody()
public
getParsedBody() : mixed
Tags
getQueryParams()
public
getQueryParams() : mixed
Tags
getRequest()
Returns the decorated request.
public
getRequest() : ServerRequestInterface
Since the underlying Request is immutable as well exposing it is not an issue, because it's state cannot be altered
Return values
ServerRequestInterfacegetRequestTarget()
{@inheritdoc}
public
getRequestTarget() : string
Return values
stringgetServerParams()
public
getServerParams() : mixed
Tags
getUploadedFiles()
public
getUploadedFiles() : mixed
Tags
getUri()
{@inheritdoc}
public
getUri() : UriInterface
Return values
UriInterfacewithAttribute()
public
withAttribute(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
Tags
withAttributes()
public
withAttributes(array<string|int, mixed> $attributes) : ServerRequestInterface
Parameters
- $attributes : array<string|int, mixed>
Return values
ServerRequestInterfacewithCookieParams()
public
withCookieParams(array<string|int, mixed> $cookies) : mixed
Parameters
- $cookies : array<string|int, mixed>
Tags
withMethod()
{@inheritdoc}
public
withMethod(mixed $method) : self
Parameters
- $method : mixed
Return values
selfwithoutAttribute()
public
withoutAttribute(mixed $name) : mixed
Parameters
- $name : mixed
Tags
withParsedBody()
public
withParsedBody(mixed $data) : mixed
Parameters
- $data : mixed
Tags
withQueryParams()
public
withQueryParams(array<string|int, mixed> $query) : mixed
Parameters
- $query : array<string|int, mixed>
Tags
withRequest()
Exchanges the underlying request with another.
public
withRequest(RequestInterface $request) : self
Parameters
- $request : RequestInterface
Return values
selfwithRequestTarget()
{@inheritdoc}
public
withRequestTarget(mixed $requestTarget) : self
Parameters
- $requestTarget : mixed
Return values
selfwithUploadedFiles()
public
withUploadedFiles(array<string|int, mixed> $uploadedFiles) : mixed
Parameters
- $uploadedFiles : array<string|int, mixed>
Tags
withUri()
{@inheritdoc}
public
withUri(UriInterface $uri[, mixed $preserveHost = false ]) : self
Parameters
- $uri : UriInterface
- $preserveHost : mixed = false