Automattic\WooCommerce\Api\Infrastructure\Schema

InputObjectType{}WC 1.0

Stable subclass of the underlying GraphQL engine's InputObjectType, used by autogenerated input types.

The constructor accepts the same associative-array config the current engine (webonyx) documents (keys: name, description, fields).

A metadata config key may also be provided; see ObjectType::get_metadata() for the semantics.

No Hooks.

Usage

$InputObjectType = new InputObjectType();
// use class methods

Methods

  1. public get_metadata()
  2. ERROR: no method name found on line ``
  3. ERROR: no method name found on line ``
  4. ERROR: no method name found on line ``
  5. ERROR: no method name found on line ``
  6. ERROR: no method name found on line ``
  7. ERROR: no method name found on line ``
  8. ERROR: no method name found on line ``
  9. ERROR: no method name found on line ``
  10. ERROR: no method name found on line ``
  11. ERROR: no method name found on line ``
  12. ERROR: no method name found on line ``
  13. ERROR: no method name found on line ``
  14. ERROR: no method name found on line ``

InputObjectType{} code WC 10.9.1

class InputObjectType extends \Automattic\WooCommerce\Vendor\GraphQL\Type\Definition\InputObjectType {
	/**
	 * 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();
	}
}