Automattic\WooCommerce\Api\Infrastructure\Schema

EnumType::get_metadatapublicWC 1.0

Type-level metadata entries declared in the config, keyed by name.

Method of the class: EnumType{}

No Hooks.

Returns

array<string, bool|int|float|string|null>.

Usage

$EnumType = new EnumType();
$EnumType->get_metadata(): array;

EnumType::get_metadata() code WC 11.0.1

public function get_metadata(): array {
	return $this->config['metadata'] ?? array();
}