woocommerce
/
lib
/
packages
/
League
/
Container
/
ServiceProvider
/
ServiceProviderAggregateInterface.php
AbstractServiceProvider.php
5 years ago
BootableServiceProviderInterface.php
5 years ago
ServiceProviderAggregate.php
3 years ago
ServiceProviderAggregateInterface.php
5 years ago
ServiceProviderInterface.php
5 years ago
ServiceProviderAggregateInterface.php
37 lines
| 1 | <?php declare(strict_types=1); |
| 2 | |
| 3 | namespace Automattic\WooCommerce\Vendor\League\Container\ServiceProvider; |
| 4 | |
| 5 | use IteratorAggregate; |
| 6 | use Automattic\WooCommerce\Vendor\League\Container\ContainerAwareInterface; |
| 7 | |
| 8 | interface ServiceProviderAggregateInterface extends ContainerAwareInterface, IteratorAggregate |
| 9 | { |
| 10 | /** |
| 11 | * Add a service provider to the aggregate. |
| 12 | * |
| 13 | * @param string|ServiceProviderInterface $provider |
| 14 | * |
| 15 | * @return self |
| 16 | */ |
| 17 | public function add($provider) : ServiceProviderAggregateInterface; |
| 18 | |
| 19 | /** |
| 20 | * Determines whether a service is provided by the aggregate. |
| 21 | * |
| 22 | * @param string $service |
| 23 | * |
| 24 | * @return boolean |
| 25 | */ |
| 26 | public function provides(string $service) : bool; |
| 27 | |
| 28 | /** |
| 29 | * Invokes the register method of a provider that provides a specific service. |
| 30 | * |
| 31 | * @param string $service |
| 32 | * |
| 33 | * @return void |
| 34 | */ |
| 35 | public function register(string $service); |
| 36 | } |
| 37 |