public function each(callable $cb) { if (!$this->_rows) { $this->readRows(); } $collection = new static(); $collection->setRecords(array_map($cb, $this->_rows)); return $collection; }