$data
$data : \SplObjectStorage
Location visitor used to serialize XML bodies
after(\Guzzle\Service\Command\CommandInterface $command, \Guzzle\Http\Message\RequestInterface $request)
Called after visiting all parameters
\Guzzle\Service\Command\CommandInterface | $command | Command being visited |
\Guzzle\Http\Message\RequestInterface | $request | Request being visited |
visit(\Guzzle\Service\Command\CommandInterface $command, \Guzzle\Http\Message\RequestInterface $request, \Guzzle\Service\Description\Parameter $param, mixed $value)
Called once for each parameter being visited that matches the location type
\Guzzle\Service\Command\CommandInterface | $command | Command being visited |
\Guzzle\Http\Message\RequestInterface | $request | Request being visited |
\Guzzle\Service\Description\Parameter | $param | Parameter being visited |
mixed | $value | Value to set |
prepareValue(mixed $value, \Guzzle\Service\Description\Parameter $param) : array|mixed
Prepare (filter and set desired name for request item) the value for request.
mixed | $value | |
\Guzzle\Service\Description\Parameter | $param |
resolveRecursively(array $value, \Guzzle\Service\Description\Parameter $param) : array
Map nested parameters into the location_key based parameters
array | $value | Value to map |
\Guzzle\Service\Description\Parameter | $param | Parameter that holds information about the current key |
Returns the mapped array
createRootElement(\Guzzle\Service\Description\Operation $operation) : \XMLWriter
Create the root XML element to use with a request
\Guzzle\Service\Description\Operation | $operation | Operation object |
addXml(\XMLWriter $xmlWriter, \Guzzle\Service\Description\Parameter $param, mixed $value)
Recursively build the XML body
\XMLWriter | $xmlWriter | XML to modify |
\Guzzle\Service\Description\Parameter | $param | API Parameter |
mixed | $value | Value to add |
writeAttribute(\XMLWriter $xmlWriter, string $prefix, string $name, string $namespace, string $value)
Write an attribute with namespace if used
\XMLWriter | $xmlWriter | XMLWriter instance |
string | $prefix | Namespace prefix if any |
string | $name | Attribute name |
string | $namespace | The uri of the namespace |
string | $value | The attribute content |
writeElement(\XMLWriter $xmlWriter, string $prefix, string $name, string $namespace, string $value)
Write an element with namespace if used
\XMLWriter | $xmlWriter | XML writer resource |
string | $prefix | Namespace prefix if any |
string | $name | Element name |
string | $namespace | The uri of the namespace |
string | $value | The element content |
addXmlArray(\XMLWriter $xmlWriter, \Guzzle\Service\Description\Parameter $param, $value)
Add an array to the XML
\XMLWriter | $xmlWriter | |
\Guzzle\Service\Description\Parameter | $param | |
$value |
addXmlObject(\XMLWriter $xmlWriter, \Guzzle\Service\Description\Parameter $param, $value)
Add an object to the XML
\XMLWriter | $xmlWriter | |
\Guzzle\Service\Description\Parameter | $param | |
$value |