GraphQL\Type\Definition\InterfaceType::resolveType PHP Method

resolveType() public method

Resolves concrete ObjectType for given object value
public resolveType ( $objectValue, $context, ResolveInfo $info ) : callable | null
$objectValue
$context
$info ResolveInfo
return callable | null
    public function resolveType($objectValue, $context, ResolveInfo $info)
    {
        if (isset($this->config['resolveType'])) {
            $fn = $this->config['resolveType'];
            return $fn($objectValue, $context, $info);
        }
        return null;
    }