Closed nozavroni closed 6 years ago
AbstractCollection implements "Iterator" so this issue is technically complete, but I wonder if one of the other ones would be more appropriate...
I feel like "RecursiveTreeIterator" would be appropriate for the MultiCollection but it already extends AbstractCollection. Maybe I should implement all the shared collection methods using traits so that I can extend Iterators like this.
See issue #166
The Collection class should be implementing Iterator or one of the related SPL interfaces/iterators (extend FilterIterator, CallbackFilterIterator, etc.). Figure out which one(s) make sense for which Collection and make it so.