Simple class to have iterable list in PHP