PHP: Which methods does a custom collection need to implement?

My question concerns the Camunda PHP SDK. My BPMN workflow contains a loop (“Sequential Multi Instance”) that I want to use for iterating over my custom collection class.

Up to now this class has methods like add() or toArray(), but there occurs an incident as I execute the workflow which is caused by my collection, so my current approach doesn’t work so far. Which methods are required by Camunda for iterating over it?

Many thanks. :slightly_smiling_face: