1 | <?php |
||
10 | final class ChainApiFactoryRegistry implements ApiFactoryRegistryInterface |
||
11 | { |
||
12 | /** @var ApiFactoryRegistryInterface[] */ |
||
13 | private $delegates = []; |
||
14 | |||
15 | /** |
||
16 | * ChainApiFactory constructor. |
||
17 | * |
||
18 | * @param array $delegates |
||
19 | */ |
||
20 | 20 | public function __construct(array $delegates = []) |
|
24 | |||
25 | /** {@inheritdoc} */ |
||
26 | 19 | public function create($alias, RpcClientInterface $client, ApiMetadata $metadata) |
|
36 | |||
37 | /** {@inheritdoc} */ |
||
38 | public function has($alias) |
||
48 | |||
49 | /** |
||
50 | * @param ApiFactoryRegistryInterface $registry |
||
51 | */ |
||
52 | 20 | public function add(ApiFactoryRegistryInterface $registry) |
|
56 | } |
||
57 |