X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=classes%2Fpliterator.php;h=47f809fa5cd7b3565e930d968365e5ea066df303;hb=5177a1b50e47e7d62a66aba9565580af3abf15dd;hp=0b5f25489e299938eeb189cb3eedf1993534dc01;hpb=179afa7fa79902e11498314d37fe4dbf452b3617;p=platal.git diff --git a/classes/pliterator.php b/classes/pliterator.php index 0b5f254..47f809f 100644 --- a/classes/pliterator.php +++ b/classes/pliterator.php @@ -19,11 +19,25 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ +/** An iterator. + */ interface PlIterator { + /** Fetch and return the next element of the iterator. + * If no more element is available, return null. + */ public function next(); + + /** Return the number of element of the iterator. + */ public function total(); + + /** True if the current element is the first element. + */ public function first(); + + /** True if the current element is the last element. + */ public function last(); }