Automattic\WooCommerce\Vendor\League\ISO3166

ISO3166::getIteratorpublicWC 1.0

Method of the class: ISO3166{}

No Hooks.

Returns

\Generator. string|array<string>>>

Usage

$ISO3166 = new ISO3166();
$ISO3166->getIterator(): \Generator;

Notes

  • See: \IteratorAggregate

ISO3166::getIterator() code WC 10.3.6

public function getIterator(): \Generator
{
    foreach ($this->countries as $country) {
        yield $country;
    }
}