| @@ -177,7 +177,7 @@ | ||
| 177 | 177 | /** | 
| 178 | 178 | * Get the defaultOrder. | 
| 179 | 179 | * | 
| 180 | - * @return array Returns the defaultOrder. | |
| 180 | + * @return string[] Returns the defaultOrder. | |
| 181 | 181 | */ | 
| 182 | 182 |      public function getDefaultOrder() { | 
| 183 | 183 | return $this->defaultOrder; | 
| @@ -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 { | 
| @@ -599,7 +599,7 @@ | ||
| 599 | 599 | /** | 
| 600 | 600 | * Build a sql update statement. | 
| 601 | 601 | * | 
| 602 | - * @param string|Identifier $table The name of the table to update. | |
| 602 | + * @param string $table The name of the table to update. | |
| 603 | 603 | * @param array $set An array of columns to set. | 
| 604 | 604 | * @param array $where The where filter. | 
| 605 | 605 | * @param array $options Additional options for the query. |