RequestTransformer
in package
implements
RequestTransformerInterface
Class RequestTransformer
Tags
Table of Contents
Interfaces
- RequestTransformerInterface
- Interface RequestTransformerInterface
Methods
- __construct() : mixed
- RequestTransformer constructor.
- createCustomPsrRequest() : RequestInterface
- Transforms provided request data into PSR-7 request model.
- createPsrRequest() : RequestInterface
- Transforms provided request data into PSR-7 request model.
- getHandler() : HandlerInterface|null
- Returns HandlerInterface.
Methods
__construct()
RequestTransformer constructor.
public
__construct(HandlerInterface $handler) : mixed
Parameters
- $handler : HandlerInterface
createCustomPsrRequest()
Transforms provided request data into PSR-7 request model.
public
createCustomPsrRequest(string $method, string $uri[, array<int|string, mixed> $requestForm = [] ]) : RequestInterface
You can alter the results by providing your chain of handlers.
Parameters
- $method : string
- $uri : string
- $requestForm : array<int|string, mixed> = []
Tags
Return values
RequestInterfacecreatePsrRequest()
Transforms provided request data into PSR-7 request model.
public
createPsrRequest(string $method, string $uri[, RequestInterface|null $request = null ]) : RequestInterface
You can alter the results by providing your chain of handlers.
Parameters
- $method : string
- $uri : string
- $request : RequestInterface|null = null
Tags
Return values
RequestInterfacegetHandler()
Returns HandlerInterface.
public
getHandler() : HandlerInterface|null