In this fourth part of the series, I will build a simple countable iterator. It will be able to easily manipulate collections of entities by using an array-like notation. What’s more, if you frequently implement different kinds of inner iterators, then you'll quickly understand the logic behind this one.


Read the full article here: Handling Collections of Domain Objects in PHP

For more discussion go here: Blog Article Discussion