Add interface PlIteraface and the corresponding abstract class
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 28 Sep 2010 09:04:14 +0000 (11:04 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 28 Sep 2010 09:15:54 +0000 (11:15 +0200)
commit4d1c62e006bc896e9ddb59d15dc7a7e30f9eb48e
tree894ac039c7afc1547e74101f83f9a664d983eff5
parent090bd6c3945603328fdd447367a8703b7360f358
Add interface PlIteraface and the corresponding abstract class
PlAbstractIterable.

PlIterable aims at providing a common interface for the objects that can
produce a PlIterator. It extends PHP's IteratorAggregate that provides an
interface for producing a PHP's iterator.

PlAbstractIterable provides a default implementation for
IteratorAggregate::getIterator.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/plabstractiterable.php [new file with mode: 0644]
classes/pliterable.php [new file with mode: 0644]