Automattic\WooCommerce\Vendor\GraphQL\Type

SchemaValidationContext::getImplementsInterfaceNodeprivateWC 1.0

Method of the class: SchemaValidationContext{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->getImplementsInterfaceNode( $type, $shouldBeInterface ): ?NamedTypeNode;
$type(ObjectType|InterfaceType) (required)
.
$shouldBeInterface(Type&NamedType) (required)
.

SchemaValidationContext::getImplementsInterfaceNode() code WC 10.9.4

private function getImplementsInterfaceNode(ImplementingType $type, NamedType $shouldBeInterface): ?NamedTypeNode
{
    $nodes = $this->getAllImplementsInterfaceNodes($type, $shouldBeInterface);

    return $nodes[0] ?? null;
}