public function doSomething(Aggregate $aggregate) { $iterator = $aggregate->createIterator(); $iterator->next(); return $iterator; }