1: <?php
2:
3: namespace Guzzle\Service\Command\LocationVisitor\Response;
4:
5: use Guzzle\Http\Message\Response;
6: use Guzzle\Service\Description\Parameter;
7: use Guzzle\Service\Command\CommandInterface;
8:
9: /**
10: * Location visitor used to add the status code of a response to a key in the result
11: */
12: class StatusCodeVisitor extends AbstractResponseVisitor
13: {
14: /**
15: * {@inheritdoc}
16: */
17: public function visit(CommandInterface $command, Response $response, Parameter $param, &$value, $context = null)
18: {
19: $value[$param->getName()] = $response->getStatusCode();
20: }
21: }
22: