*/ public function count() { return (int) $this->getNumRows(); } /** * {@inheritdoc} */ public function getIterator() { $this->loop($this->rows); return $this->data; //return new \ArrayIterator($this->loop($this->rows)); } }