\Guzzle\Service\Command\LocationVisitor\ResponseResponseVisitorInterface

Location visitor used to parse values out of a response into an associative array

Summary

Methods
Constants
before()
after()
visit()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

before()

before(\Guzzle\Service\Command\CommandInterface  $command, array  $result) 

Called before visiting all parameters. This can be used for seeding the result of a command with default data (e.g. populating with JSON data in the response then adding to the parsed data).

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command being visited

array $result

Result value to update if needed (e.g. parsing XML or JSON)

visit()

visit(\Guzzle\Service\Command\CommandInterface  $command, \Guzzle\Http\Message\Response  $response, \Guzzle\Service\Description\Parameter  $param, mixed  $value, mixed  $context = null) 

Called once for each parameter being visited that matches the location type

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command being visited

\Guzzle\Http\Message\Response $response

Response being visited

\Guzzle\Service\Description\Parameter $param

Parameter being visited

mixed $value

Result associative array value being updated by reference

mixed $context

Parsing context