$instance
$instance : self
Flyweight factory used to instantiate request and response visitors
getRequestVisitor(string $visitor) : \Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface
Get an instance of a request visitor by location name
string | $visitor | Visitor name |
getResponseVisitor(string $visitor) : \Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface
Get an instance of a response visitor by location name
string | $visitor | Visitor name |
addRequestVisitor(string $name, \Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface $visitor) : self
Add a response visitor to the factory by name
string | $name | Name of the visitor |
\Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface | $visitor | Visitor to add |
addResponseVisitor(string $name, \Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface $visitor) : self
Add a response visitor to the factory by name
string | $name | Name of the visitor |
\Guzzle\Service\Command\LocationVisitor\Response\ResponseVisitorInterface | $visitor | Visitor to add |