@@ -44,7 +44,7 @@ |
||
44 | 44 | /** |
45 | 45 | * Retrieve an external iterator |
46 | 46 | * @link http://php.net/manual/en/iteratoraggregate.getiterator.php |
47 | - * @return Traversable Returns a generator of all rows. |
|
47 | + * @return \ArrayIterator Returns a generator of all rows. |
|
48 | 48 | */ |
49 | 49 | public function getIterator() { |
50 | 50 | return new \ArrayIterator($this->getData()); |
@@ -158,6 +158,9 @@ |
||
158 | 158 | return $this; |
159 | 159 | } |
160 | 160 | |
161 | + /** |
|
162 | + * @param string $name |
|
163 | + */ |
|
161 | 164 | protected function getOption($name, $default = null) { |
162 | 165 | return isset($this->options[$name]) ? $this->options[$name] : $default; |
163 | 166 | } |
@@ -8,7 +8,6 @@ |
||
8 | 8 | namespace Garden\Db; |
9 | 9 | |
10 | 10 | use PDO; |
11 | -use Traversable; |
|
12 | 11 | |
13 | 12 | class TableQuery implements \IteratorAggregate, DatasetInterface { |
14 | 13 | use Utils\FetchModeTrait, DatasetTrait { |