List<Argument> arguments = Lists.newArrayList();
for (int i = 0; i < sequence.getItems().size(); i++) {
XmlSchemaSequenceMember sequenceItem = sequence.getItems().get(i);
ParticleInfo itemInfo = ParticleInfo.forLocalItem((XmlSchemaObject) sequenceItem, wrapperSchema, xmlSchemaCollection, prefixAccumulator, contextQName);
TypeHint typeHint;
XmlSchemaType type = itemInfo.getType(); // null for an any.
if (type instanceof XmlSchemaComplexType) {
QName baseName;
if (type.getQName() != null) {
baseName = type.getQName();
} else {
baseName = ((XmlSchemaElement) sequenceItem).getQName();
}
typeHint = new TypeHint(itemInfo.isArray(), nameManager.getAbsolutePhpClassName(baseName));
} else {
typeHint = new TypeHint(itemInfo.isArray());
}
arguments.add(new Argument(typeHint, itemInfo.getXmlName()));
}
TypeHint returnType = findReturnType(currentOperation);
current.addOperation(new Operation(nameManager.getPhpName(currentOperation.getName()), returnType, arguments));
}