Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

ImplementingType{}interfaceWC 1.0

export type GraphQLImplementingType = GraphQLObjectType | GraphQLInterfaceType;.

Хуков нет.

Использование

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

Методы

  1. public getInterfaces()
  2. public implementsInterface(InterfaceType $interfaceType)

Код ImplementingType{} WC 11.0.1

interface ImplementingType
{
    public function implementsInterface(InterfaceType $interfaceType): bool;

    /** @return array<int, InterfaceType> */
    public function getInterfaces(): array;
}