@@ 58-66 (lines=9) @@ | ||
55 | return $array; |
|
56 | } |
|
57 | ||
58 | public function arrayCompatibleIterator(\Traversable $iterator) |
|
59 | { |
|
60 | $iterator = $this->adapter($iterator); |
|
61 | if ($iterator->isArrayCompatible()) { |
|
62 | return $iterator; |
|
63 | } |
|
64 | ||
65 | return new ArrayCompatibleIterator($this->adapter($iterator)); |
|
66 | } |
|
67 | ||
68 | /** |
|
69 | * @param \Traversable $iterator |
@@ 75-83 (lines=9) @@ | ||
72 | } |
|
73 | } |
|
74 | ||
75 | public function arrayCompatibleIterator(\Traversable $iterator) |
|
76 | { |
|
77 | $iterator = $this->adapter($iterator); |
|
78 | if ($iterator->isArrayCompatible()) { |
|
79 | return $iterator; |
|
80 | } |
|
81 | ||
82 | return new ArrayCompatibleIterator($this->adapter($iterator)); |
|
83 | } |
|
84 | ||
85 | public function adapterIterator(\Traversable $iterator) |
|
86 | { |