$locationName
$locationName : string
Creates an XML document
$locationName : string
$contentType : string
$buffered : \GuzzleHttp\Command\Guzzle\Parameter[]
__construct(string $locationName = 'xml', string $contentType = 'application/xml') : mixed
Set the name of the location
string | $locationName | Name of the location |
string | $contentType | Set to a non-empty string to add a Content-Type header to a request if any XML content is added to the body. Pass an empty string to disable the addition of the header. |
visit(\GuzzleHttp\Command\CommandInterface $command, \Psr\Http\Message\RequestInterface $request, \GuzzleHttp\Command\Guzzle\Parameter $param) : \Psr\Http\Message\RequestInterface
Visits a location for each top-level parameter
\GuzzleHttp\Command\CommandInterface | $command | |
\Psr\Http\Message\RequestInterface | $request | |
\GuzzleHttp\Command\Guzzle\Parameter | $param |
after(\GuzzleHttp\Command\CommandInterface $command, \Psr\Http\Message\RequestInterface $request, \GuzzleHttp\Command\Guzzle\Operation $operation) : \Psr\Http\Message\RequestInterface
Called when all of the parameters of a command have been visited.
\GuzzleHttp\Command\CommandInterface | $command | |
\Psr\Http\Message\RequestInterface | $request | |
\GuzzleHttp\Command\Guzzle\Operation | $operation |
resolveRecursively(array $value, \GuzzleHttp\Command\Guzzle\Parameter $param) : array
Recursively prepare and filter nested values.
array | $value | Value to map |
\GuzzleHttp\Command\Guzzle\Parameter | $param | Parameter related to the current key. |
Returns the mapped array
writeAttribute(\XMLWriter $writer, string $prefix, string $name, string $namespace, string $value) : mixed
Write an attribute with namespace if used
\XMLWriter | $writer | 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 $writer, string $prefix, string $name, string $namespace, string $value) : mixed
Write an element with namespace if used
\XMLWriter | $writer | 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 |