Automattic\WooCommerce\Vendor\GraphQL\Type\Definition

ObjectType::isTypeOfpublicWC 1.0

Method of the class: ObjectType{}

No Hooks.

Returns

bool|Deferred|null.

Usage

$ObjectType = new ObjectType();
$ObjectType->isTypeOf( $objectValue, $context, $info );
$objectValue(mixed) (required)
The resolved value for the object type.
$context(mixed) (required)
The context that was passed to GraphQL::execute().
$info(ResolveInfo) (required)
.

ObjectType::isTypeOf() code WC 11.0.1

public function isTypeOf($objectValue, $context, ResolveInfo $info)
{
    return isset($this->config['isTypeOf'])
        ? $this->config['isTypeOf'](
            $objectValue,
            $context,
            $info
        )
        : null;
}