1: <?php
2:
3: namespace Guzzle\Service\Command\LocationVisitor\Request;
4:
5: use Guzzle\Http\Message\RequestInterface;
6: use Guzzle\Service\Command\CommandInterface;
7: use Guzzle\Service\Description\Parameter;
8:
9: /**
10: * Visitor used to change the location in which a response body is saved
11: */
12: class ResponseBodyVisitor extends AbstractRequestVisitor
13: {
14: /**
15: * {@inheritdoc}
16: */
17: public function visit(CommandInterface $command, RequestInterface $request, Parameter $param, $value)
18: {
19: $request->setResponseBody($value);
20: }
21: }
22: