WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container\ServiceProvider

ServiceProviderAggregate::getIterator() public WC 1.0

{@inheritdoc}

{} It's a method of the class: ServiceProviderAggregate{}

No Hooks.

Return

null. Nothing.

Usage

$ServiceProviderAggregate = new ServiceProviderAggregate();
$ServiceProviderAggregate->getIterator() : Generator;

Code of ServiceProviderAggregate::getIterator() WC 5.6.0

public function getIterator() : Generator
{
    $count = count($this->providers);

    for ($i = 0; $i < $count; $i++) {
        yield $this->providers[$i];
    }
}