NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class AbstractResponseVisitor

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

  Guzzle\Service\Command\LocationVisitor\Response\AbstractResponseVisitor implements Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface

### Direct known subclasses

`Guzzle\Service\Command\LocationVisitor\Response\BodyVisitor`, `Guzzle\Service\Command\LocationVisitor\Response\HeaderVisitor`, `Guzzle\Service\Command\LocationVisitor\Response\JsonVisitor`, `Guzzle\Service\Command\LocationVisitor\Response\ReasonPhraseVisitor`, `Guzzle\Service\Command\LocationVisitor\Response\StatusCodeVisitor`, `Guzzle\Service\Command\LocationVisitor\Response\XmlVisitor`

### Indirect known subclasses

`Aws\Common\Command\XmlResponseLocationVisitor`

Abstract
Namespace: Guzzle\Service\Command\LocationVisitor\Response
CodeCoverageIgnore
Located at Guzzle/Service/Command/LocationVisitor/Response/AbstractResponseVisitor.php

## Methods summary

- `public` `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).

- `public` `after ( Guzzle\Service\Command\CommandInterface $command )`

  Called after visiting all parameters

- `public` `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

## Methods detail

# `public`
`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

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command being visited
$result
  `array`
  $result Result value to update if needed (e.g. parsing XML or JSON)

#### Implementation of

`Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface::before()`
# `public`
`after( `Guzzle\Service\Command\CommandInterface` $command )`

Called after visiting all parameters

#### Parameters

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command being visited

#### Implementation of

`Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface::after()`
# `public`
`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

$command
  ``Guzzle\Service\Command\CommandInterface``
  $command Command being visited
$response
  ``Guzzle\Http\Message\Response``
  $response Response being visited
$param
  ``Guzzle\Service\Description\Parameter``
  $param Parameter being visited
$value
  `mixed`
  $value Result associative array value being updated by reference
$context
  `mixed`
  $context Parsing context

#### Implementation of

`Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface::visit()`

### Magic methods summary