Documentation

DefaultRequestSerializer
in package
implements RequestSerializerInterface

Default request serializer that transforms command options and operation parameters into a request

Table of Contents

Interfaces

RequestSerializerInterface
Translates command options and operation parameters into a request object

Properties

$factory  : VisitorFlyweight
$instance  : self

Methods

__construct()  : mixed
addVisitor()  : self
Add a location visitor to the serializer
getInstance()  : self
prepare()  : RequestInterface
Create a request for a command
createRequest()  : RequestInterface
Create a request for the command and operation
prepareAdditionalParameters()  : null|RequestVisitorInterface
Serialize additional parameters

Properties

Methods

prepareAdditionalParameters()

Serialize additional parameters

protected prepareAdditionalParameters(OperationInterface $operation, CommandInterface $command, RequestInterface $request, Parameter $additional) : null|RequestVisitorInterface
Parameters
$operation : OperationInterface

Operation that owns the command

$command : CommandInterface

Command to prepare

$request : RequestInterface

Request to serialize

$additional : Parameter

Additional parameters

Return values
null|RequestVisitorInterface

        
On this page

Search results