Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

EnumType::initializeNameLookupprivateWC 1.0

Method of the class: EnumType{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->initializeNameLookup(): void;

EnumType::initializeNameLookup() code WC 10.9.4

private function initializeNameLookup(): void
{
    $this->nameLookup = [];
    foreach ($this->getValues() as $value) {
        $this->nameLookup[$value->name] = $value;
    }
}