Automattic\WooCommerce\Internal\Api\Autogenerated

TypeRegistry{}WC 1.0

No Hooks.

Usage

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

Methods

  1. public static get_interface_implementors()

TypeRegistry{} code WC 10.9.1

class TypeRegistry {
	/**
	 * Return all concrete types that implement interfaces.
	 *
	 * Pass this to the Schema 'types' config so that inline fragments
	 * (e.g. `... on VariableProduct`) are resolvable.
	 *
	 * @return array
	 */
	public static function get_interface_implementors(): array {
		return array(
			ProductVariation::get(),
			ExternalProduct::get(),
			VariableProduct::get(),
			SimpleProduct::get(),
			Coupon::get(),
		);
	}
}