\Guzzle\Service\Command\LocationVisitorVisitorFlyweight

Flyweight factory used to instantiate request and response visitors

Summary

Methods
Properties
Constants
getInstance()
__construct()
getRequestVisitor()
getResponseVisitor()
addRequestVisitor()
addResponseVisitor()
No public properties found
No constants found
No protected methods found
$instance
$defaultMappings
$mappings
$cache
N/A
getKey()
No private properties found
N/A

Properties

$instance

$instance : self

Type

self — Singleton instance of self

$defaultMappings

$defaultMappings : array

Type

array — Default array of mappings of location names to classes

$mappings

$mappings : array

Type

array — Array of mappings of location names to classes

$cache

$cache : array

Type

array — Cache of instantiated visitors

Methods

getInstance()

getInstance() : self

Returns

self

__construct()

__construct(array  $mappings = null) 

Parameters

array $mappings

Array mapping request.name and response.name to location visitor classes. Leave null to use the default values.

getKey()

getKey(string  $key) : mixed

Get a visitor by key value name

Parameters

string $key

Key name to retrieve

Throws

\Guzzle\Common\Exception\InvalidArgumentException

Returns

mixed