Class AbstractRequestVisitor
Location visitor used to add values to different locations in a request with different behaviors as needed
- Guzzle\Service\Command\LocationVisitor\Request\AbstractRequestVisitor implements Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface
Direct known subclasses
Aws\Common\Command\AwsQueryVisitor,
Guzzle\Service\Command\LocationVisitor\Request\BodyVisitor,
Guzzle\Service\Command\LocationVisitor\Request\HeaderVisitor,
Guzzle\Service\Command\LocationVisitor\Request\JsonVisitor,
Guzzle\Service\Command\LocationVisitor\Request\PostFieldVisitor,
Guzzle\Service\Command\LocationVisitor\Request\PostFileVisitor,
Guzzle\Service\Command\LocationVisitor\Request\QueryVisitor,
Guzzle\Service\Command\LocationVisitor\Request\ResponseBodyVisitor,
Guzzle\Service\Command\LocationVisitor\Request\XmlVisitor
Namespace: Guzzle\Service\Command\LocationVisitor\Request
Located at Guzzle/Service/Command/LocationVisitor/Request/AbstractRequestVisitor.php
Methods summary
-
publicafter ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request ) -
publicvisit ( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request, Guzzle\Service\Description\Parameter $param, mixed $value ) -
protectedprepareValue ( mixed $value, Guzzle\Service\Description\Parameter $param )Prepare (filter and set desired name for request item) the value for request.
-
protectedresolveRecursively ( array $value, Guzzle\Service\Description\Parameter $param )Map nested parameters into the location_key based parameters
Methods detail
public
after( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request )
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Command being visited- $request
Guzzle\Http\Message\RequestInterface
$request Request being visited
CodeCoverageIgnore
Implementation of
public
visit( Guzzle\Service\Command\CommandInterface $command, Guzzle\Http\Message\RequestInterface $request, Guzzle\Service\Description\Parameter $param, mixed $value )
Parameters
- $command
Guzzle\Service\Command\CommandInterface
$command Command being visited- $request
Guzzle\Http\Message\RequestInterface
$request Request being visited- $param
Guzzle\Service\Description\Parameter
$param Parameter being visited- $value
mixed
$value Value to set
CodeCoverageIgnore
Implementation of
Prepare (filter and set desired name for request item) the value for request.
Parameters
- $value
mixed
$value- $param
Guzzle\Service\Description\Parameter
$param
Returns
array|mixedMap nested parameters into the location_key based parameters
Parameters
- $value
array
$value Value to map- $param
Guzzle\Service\Description\Parameter
$param Parameter that holds information about the current key
Returns
arrayReturns the mapped array