private function buildWrappedType(Type $innerType, TypeNode $inputTypeNode)
    {
        if ($inputTypeNode->kind === NodeKind::LIST_TYPE) {
            return Type::listOf($this->buildWrappedType($innerType, $inputTypeNode->type));
        }
        if ($inputTypeNode->kind === NodeKind::NON_NULL_TYPE) {
            $wrappedType = $this->buildWrappedType($innerType, $inputTypeNode->type);

            return Type::nonNull(NonNull::assertNullableType($wrappedType));
        }

        return $innerType;
    }
private function buildWrappedType(Type $innerType, TypeNode $inputTypeNode)
    {
        if ($inputTypeNode->kind === NodeKind::LIST_TYPE) {
            return Type::listOf($this->buildWrappedType($innerType, $inputTypeNode->type));
        }
        if ($inputTypeNode->kind === NodeKind::NON_NULL_TYPE) {
            $wrappedType = $this->buildWrappedType($innerType, $inputTypeNode->type);

            return Type::nonNull(NonNull::assertNullableType($wrappedType));
        }

        return $innerType;
    }
private function buildWrappedType ( Type $ innerType , TypeNode $ inputTypeNode ) { if ( $ inputTypeNode -> kind === NodeKind :: LIST_TYPE ) { return Type :: listOf ( $ this -> buildWrappedType ( $ innerType , $ inputTypeNode -> type ) ) ; } if ( $ inputTypeNode -> kind === NodeKind :: NON_NULL_TYPE ) { $ wrappedType = $ this -> buildWrappedType ( $ innerType , $ inputTypeNode -> type ) ; return Type :: nonNull ( NonNull :: assertNullableType ( $ wrappedType ) ) ; } return $ innerType ; }
@param TypeNode|ListTypeNode|NonNullTypeNode $inputTypeNode

@return Type
@param TypeNode|ListTypeNode|NonNullTypeNode $inputTypeNode