Class CompositeWaiterFactory
Factory that utilizes multiple factories for creating waiters
- Aws\Common\Waiter\CompositeWaiterFactory implements Aws\Common\Waiter\WaiterFactoryInterface
Methods summary
-
public
__construct ( array $factories )
-
public
build ( string $waiter )
Create a waiter by name
-
public
canBuild ( string $waiter )
Check if the factory can create a waiter by a specific name
-
public
addFactory ( Aws\Common\Waiter\WaiterFactoryInterface $factory )
Add a factory to the composite factory
-
protected
getFactory ( string $waiter )
Get the factory that matches the waiter name
Methods detail
Parameters
- $factories
array
$factories Array of factories used to instantiate waiters
Create a waiter by name
Parameters
- $waiter
string
$waiter Name of the waiter to create
Returns
Implementation of
Check if the factory can create a waiter by a specific name
Parameters
- $waiter
string
$waiter Name of the waiter to check
Returns
boolean
Implementation of
#
public
Aws\Common\Waiter\CompositeWaiterFactory
addFactory( Aws\Common\Waiter\WaiterFactoryInterface
$factory )
Add a factory to the composite factory
Parameters
- $factory
Aws\Common\Waiter\WaiterFactoryInterface
$factory Factory to add
Returns
Get the factory that matches the waiter name
Parameters
- $waiter
string
$waiter Name of the waiter
Returns
Magic methods summary
Properties summary
protected
array
|
$factories |
#
Array of factories |