\Guzzle\Service\ResourceResourceIteratorClassFactory

Factory for creating {@see ResourceIteratorInterface} objects using a convention of storing iterator classes under a root namespace using the name of a {@see CommandInterface} object as a convention for determining the name of an iterator class. The command name is converted to CamelCase and Iterator is appended (e.g. abc_foo => AbcFoo).

Summary

Methods
Properties
Constants
build()
canBuild()
__construct()
registerNamespace()
No public properties found
No constants found
getClassName()
$namespaces
$inflector
N/A
No private methods found
No private properties found
N/A

Properties

$namespaces

$namespaces : array

Type

array — List of namespaces used to look for classes

Methods

canBuild()

canBuild(\Guzzle\Service\Command\CommandInterface  $command) : boolean

Check if the factory can create an iterator

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command to create an iterator for

Returns

boolean

__construct()

__construct(string|array  $namespaces = array(), \Guzzle\Inflection\InflectorInterface  $inflector = null) 

Parameters

string|array $namespaces

List of namespaces for iterator objects

\Guzzle\Inflection\InflectorInterface $inflector

Inflector used to resolve class names

registerNamespace()

registerNamespace(string  $namespace) : self

Registers a namespace to check for Iterators

Parameters

string $namespace

Namespace which contains Iterator classes

Returns

self

getClassName()

getClassName(\Guzzle\Service\Command\CommandInterface  $command) : string

Get the name of the class to instantiate for the command

Parameters

\Guzzle\Service\Command\CommandInterface $command

Command that is associated with the iterator

Returns

string