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 ) -
publicbuild ( string $waiter )Create a waiter by name
-
publiccanBuild ( string $waiter )Check if the factory can create a waiter by a specific name
-
publicaddFactory ( Aws\Common\Waiter\WaiterFactoryInterface $factory )Add a factory to the composite factory
-
protectedgetFactory ( 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
booleanImplementation 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 |