Automattic\WooCommerce\Api\Infrastructure\Schema
EnumType{}
Stable subclass of the underlying GraphQL engine's EnumType, used by autogenerated enums.
The constructor accepts the same associative-array config the current engine (webonyx) documents (keys: name, description, values).
A metadata config key may also be provided; see ObjectType::get_metadata() for the semantics.
No Hooks.
Usage
$EnumType = new EnumType(); // use class methods
Methods
- public get_metadata()
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
EnumType{} EnumType{} code WC 10.9.4
class EnumType extends \Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\EnumType {
/**
* Type-level metadata entries declared in the config, keyed by name.
*
* @return array<string, bool|int|float|string|null>
*/
public function get_metadata(): array {
return $this->config['metadata'] ?? array();
}
}