/** * @return int|string */ public function getLastInsertId() { if (!$this->cursor) { return self::DEFAULT_LAST_INSERT_ID; } return $this->cursor->getInsertId(); }
/** * */ private function initialize() { $rows = []; while (($row = $this->executorCursor->next()) !== false) { $rows[] = $row; } $this->data = new Data($rows); }