Documentation

CompositeWaiterFactory
in package
implements WaiterFactoryInterface

Factory that utilizes multiple factories for creating waiters

Table of Contents

Interfaces

WaiterFactoryInterface
Waiter factory used to create waiter objects by short names

Properties

$factories  : array<string|int, mixed>

Methods

__construct()  : mixed
addFactory()  : self
Add a factory to the composite factory
build()  : WaiterInterface
Create a waiter by name
canBuild()  : bool
Check if the factory can create a waiter by a specific name
getFactory()  : WaiterFactoryInterface|bool
Get the factory that matches the waiter name

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $factories) : mixed
Parameters
$factories : array<string|int, mixed>

Array of factories used to instantiate waiters

canBuild()

Check if the factory can create a waiter by a specific name

public canBuild(mixed $waiter) : bool
Parameters
$waiter : mixed

Name of the waiter to check

Return values
bool

        
On this page

Search results