$instance
$instance : self
Response parser that attempts to marshal responses into an associative array based on models in a service description
$factory : \Guzzle\Service\Command\LocationVisitor\VisitorFlyweight
parse(\Guzzle\Service\Command\CommandInterface $command) : mixed
Parse the HTTP response received by the command and update the command's result contents
| \Guzzle\Service\Command\CommandInterface | $command | Command to parse and update |
Returns the result to set on the command
__construct(\Guzzle\Service\Command\LocationVisitor\VisitorFlyweight $factory, boolean $schemaInModels = false)
| \Guzzle\Service\Command\LocationVisitor\VisitorFlyweight | $factory | Factory to use when creating visitors |
| boolean | $schemaInModels | Set to true to inject schemas into models |
addVisitor(string $location, \Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface $visitor) : self
Add a location visitor to the command
| string | $location | Location to associate with the visitor |
| \Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface | $visitor | Visitor to attach |
handleParsing(\Guzzle\Service\Command\CommandInterface $command, \Guzzle\Http\Message\Response $response, $contentType)
| \Guzzle\Service\Command\CommandInterface | $command | |
| \Guzzle\Http\Message\Response | $response | |
| $contentType |
parseClass(\Guzzle\Service\Command\CommandInterface $command) : mixed
Parse a class object
| \Guzzle\Service\Command\CommandInterface | $command | Command to parse into an object |
visitResult(\Guzzle\Service\Description\Parameter $model, \Guzzle\Service\Command\CommandInterface $command, \Guzzle\Http\Message\Response $response) : array
Perform transformations on the result array
| \Guzzle\Service\Description\Parameter | $model | Model that defines the structure |
| \Guzzle\Service\Command\CommandInterface | $command | Command that performed the operation |
| \Guzzle\Http\Message\Response | $response | Response received |
Returns the array of result data
visitAdditionalProperties(\Guzzle\Service\Description\Parameter $model, \Guzzle\Service\Command\CommandInterface $command, \Guzzle\Http\Message\Response $response, \Guzzle\Service\Description\Parameter $additional, $result, array $foundVisitors)
| \Guzzle\Service\Description\Parameter | $model | |
| \Guzzle\Service\Command\CommandInterface | $command | |
| \Guzzle\Http\Message\Response | $response | |
| \Guzzle\Service\Description\Parameter | $additional | |
| $result | ||
| array | $foundVisitors |