@@ 34-41 (lines=8) @@ | ||
31 | return parent::rewind(); |
|
32 | } |
|
33 | ||
34 | public function filterAssumeUnsorted($key) |
|
35 | { |
|
36 | if (isset($this->found[$key])) { |
|
37 | return false; |
|
38 | } |
|
39 | $this->found[$key] = true; |
|
40 | return true; |
|
41 | } |
|
42 | ||
43 | public function filterAssumeSorted($key) |
|
44 | { |
|
@@ 43-50 (lines=8) @@ | ||
40 | return true; |
|
41 | } |
|
42 | ||
43 | public function filterAssumeSorted($key) |
|
44 | { |
|
45 | if (isset($this->found[$key])) { |
|
46 | return false; |
|
47 | } |
|
48 | $this->found = [$key => true]; |
|
49 | return true; |
|
50 | } |
|
51 | ||
52 | public static function filterCurrent($iterator) |
|
53 | { |