Automattic\WooCommerce\Vendor\GraphQL\Type

Introspection::_typeKindpublic staticWC 1.0

Method of the class: Introspection{}

No Hooks.

Returns

null. Nothing (null).

Usage

$result = Introspection::_typeKind(): EnumType;

Introspection::_typeKind() code WC 10.9.1

public static function _typeKind(): EnumType
{
    return self::$cachedInstances[self::TYPE_KIND_ENUM_NAME] ??= new EnumType([ // @phpstan-ignore missingType.checkedException (static configuration is known to be correct)
        'name' => self::TYPE_KIND_ENUM_NAME,
        'isIntrospection' => true,
        'description' => 'An enum describing what kind of type a given `__Type` is.',
        'values' => [
            'SCALAR' => [
                'value' => TypeKind::SCALAR,
                'description' => 'Indicates this type is a scalar.',
            ],
            'OBJECT' => [
                'value' => TypeKind::OBJECT,
                'description' => 'Indicates this type is an object. `fields` and `interfaces` are valid fields.',
            ],
            'INTERFACE' => [
                'value' => TypeKind::INTERFACE,
                'description' => 'Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.',
            ],
            'UNION' => [
                'value' => TypeKind::UNION,
                'description' => 'Indicates this type is a union. `possibleTypes` is a valid field.',
            ],
            'ENUM' => [
                'value' => TypeKind::ENUM,
                'description' => 'Indicates this type is an enum. `enumValues` is a valid field.',
            ],
            'INPUT_OBJECT' => [
                'value' => TypeKind::INPUT_OBJECT,
                'description' => 'Indicates this type is an input object. `inputFields` is a valid field.',
            ],
            'LIST' => [
                'value' => TypeKind::LIST,
                'description' => 'Indicates this type is a list. `ofType` is a valid field.',
            ],
            'NON_NULL' => [
                'value' => TypeKind::NON_NULL,
                'description' => 'Indicates this type is a non-null. `ofType` is a valid field.',
            ],
        ],
    ]);
}