Automattic\WooCommerce\Vendor\GraphQL\Type\Definition
EnumType::getValueLookup
Method of the class: EnumType{}
No Hooks.
Returns
MixedStore<EnumValueDefinition>.
Usage
// private - for code of main (parent) class only $result = $this->getValueLookup(): MixedStore;
EnumType::getValueLookup() EnumType::getValueLookup code WC 11.1.2
private function getValueLookup(): MixedStore
{
if (! isset($this->valueLookup)) {
$this->valueLookup = new MixedStore();
foreach ($this->getValues() as $value) {
$this->valueLookup->offsetSet($value->value, $value);
}
}
return $this->valueLookup;
}