Automattic\WooCommerce\Vendor\League\Container\Definition

DefinitionAggregate::getIterator()publicWC 1.0

{@inheritdoc}

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of DefinitionAggregate::getIterator() WC 7.1.0

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

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