1: <?php
2:
3: namespace Guzzle\Service\Command\LocationVisitor\Request;
4:
5: use Guzzle\Http\Message\RequestInterface;
6: use Guzzle\Service\Description\Parameter;
7: use Guzzle\Service\Command\CommandInterface;
8:
9: /**
10: * Location visitor used to add values to different locations in a request with different behaviors as needed
11: */
12: interface RequestVisitorInterface
13: {
14: /**
15: * Called after visiting all parameters
16: *
17: * @param CommandInterface $command Command being visited
18: * @param RequestInterface $request Request being visited
19: */
20: public function after(CommandInterface $command, RequestInterface $request);
21:
22: /**
23: * Called once for each parameter being visited that matches the location type
24: *
25: * @param CommandInterface $command Command being visited
26: * @param RequestInterface $request Request being visited
27: * @param Parameter $param Parameter being visited
28: * @param mixed $value Value to set
29: */
30: public function visit(CommandInterface $command, RequestInterface $request, Parameter $param, $value);
31: }
32: