Automattic\WooCommerce\Vendor\League\ISO3166

ISO3166::__constructpublicWC 1.0

Method of the class: ISO3166{}

No Hooks.

Returns

null. Nothing (null).

Usage

$ISO3166 = new ISO3166();
$ISO3166->__construct( $countries );
$countries(array<array{name: string, alpha2: string, alpha3: string, numeric: numeric-string, currency: string[]}>)
replace default dataset with given array.
Default: []

ISO3166::__construct() code WC 11.0.1

public function __construct(array $countries = [])
{
    if ([] !== $countries) {
        $this->countries = $countries;
    }
}