\Guzzle\Service\Command\FactoryCompositeFactory

Composite factory used by a client object to create command objects utilizing multiple factories

Summary

Methods
Properties
Constants
getDefaultChain()
__construct()
add()
has()
remove()
find()
factory()
count()
getIterator()
No public properties found
No constants found
No protected methods found
$factories
N/A
No private methods found
No private properties found
N/A

Properties

$factories

$factories : array

Type

array — Array of command factories

Methods

getDefaultChain()

getDefaultChain(\Guzzle\Service\ClientInterface  $client) : self

Get the default chain to use with clients

Parameters

\Guzzle\Service\ClientInterface $client

Client to base the chain on

Returns

self

__construct()

__construct(array  $factories = array()) 

Parameters

array $factories

Array of command factories

add()

add(\Guzzle\Service\Command\Factory\FactoryInterface  $factory, string|\Guzzle\Service\Command\Factory\FactoryInterface  $before = null) : \Guzzle\Service\Command\Factory\CompositeFactory

Add a command factory to the chain

Parameters

\Guzzle\Service\Command\Factory\FactoryInterface $factory

Factory to add

string|\Guzzle\Service\Command\Factory\FactoryInterface $before

Insert the new command factory before a command factory class or object matching a class name.

Returns

\Guzzle\Service\Command\Factory\CompositeFactory

has()

has(\Guzzle\Service\Command\Factory\FactoryInterface|string  $factory) : boolean

Check if the chain contains a specific command factory

Parameters

\Guzzle\Service\Command\Factory\FactoryInterface|string $factory

Factory to check

Returns

boolean

factory()

factory(string  $name, array  $args = array()) : \Guzzle\Service\Command\CommandInterface

Create a command using the associated command factories

Parameters

string $name

Name of the command

array $args

Command arguments

Returns

\Guzzle\Service\Command\CommandInterface

count()

count() 

getIterator()

getIterator()