Class Guzzle\Service\Resource\CompositeResourceIteratorFactory

InheritanceGuzzle\Service\Resource\CompositeResourceIteratorFactory
ImplementsGuzzle\Service\Resource\ResourceIteratorFactoryInterface

Factory that utilizes multiple factories for creating iterators

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$factories array Array of factories Guzzle\Service\Resource\CompositeResourceIteratorFactory

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
getFactory() Get the factory that matches the command object Guzzle\Service\Resource\CompositeResourceIteratorFactory

Property Details

$factories protected property

Array of factories

protected array $factories null

Method Details

__construct() public method

public void __construct ( array $factories )
$factories array

Array of factories used to instantiate iterators

addFactory() public method

Add a factory to the composite factory

public self addFactory ( Guzzle\Service\Resource\ResourceIteratorFactoryInterface $factory )
$factory Guzzle\Service\Resource\ResourceIteratorFactoryInterface

Factory to add

build() public method

public void build ( Guzzle\Service\Command\CommandInterface $command, array $options = [] )
$command
$options
canBuild() public method

public void canBuild ( Guzzle\Service\Command\CommandInterface $command )
$command
getFactory() protected method

Get the factory that matches the command object

protected Guzzle\Service\Resource\ResourceIteratorFactoryInterface|bool getFactory ( Guzzle\Service\Command\CommandInterface $command )
$command Guzzle\Service\Command\CommandInterface

Command retrieving the iterator for