-
Notifications
You must be signed in to change notification settings - Fork 5
/
pudlCollection.modern.php
37 lines (23 loc) · 1019 Bytes
/
pudlCollection.modern.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
trait pudlCollection_trait {
////////////////////////////////////////////////////////////////////////////
// RESET INTERNAL POINTER TO FIRST OBJECT IN COLLECTION
// https://www.php.net/manual/en/iterator.rewind.php
////////////////////////////////////////////////////////////////////////////
public function rewind() : void {
$this->_rewind();
}
////////////////////////////////////////////////////////////////////////////
// MOVE INTERNAL POINTER TO SPECIFIC ITEM WITHIN COLLECTION
////////////////////////////////////////////////////////////////////////////
public function seek($row) : void {
$this->_seek($row);
}
////////////////////////////////////////////////////////////////////////////
// RETURNS THE INNER ITERATOR FOR THE CURRENT ENTRY.
// http://php.net/manual/en/outeriterator.getinneriterator.php
////////////////////////////////////////////////////////////////////////////
public function getInnerIterator() : ?Iterator {
return $this->_getInnerIterator();
}
}