| @@ 27-33 (lines=7) @@ | ||
| 24 | ||
| 25 | public function accept() |
|
| 26 | { |
|
| 27 | foreach ($this->iterators as $iterator) { |
|
| 28 | foreach ($iterator as $key => $value) { |
|
| 29 | if (($this->callback)($this->getInnerIterator(), $key, $value)) { |
|
| 30 | return false; |
|
| 31 | } |
|
| 32 | } |
|
| 33 | } |
|
| 34 | return true; |
|
| 35 | } |
|
| 36 | ||
| @@ 10-17 (lines=8) @@ | ||
| 7 | public function accept() |
|
| 8 | { |
|
| 9 | $found = 0; |
|
| 10 | foreach ($this->iterators as $iterator) { |
|
| 11 | foreach ($iterator as $key => $value) { |
|
| 12 | if (($this->callback)($this->getInnerIterator(), $key, $value)) { |
|
| 13 | $found++; |
|
| 14 | continue; |
|
| 15 | } |
|
| 16 | } |
|
| 17 | } |
|
| 18 | return $found == count($this->iterators); |
|
| 19 | } |
|
| 20 | } |
|