public function __construct(Statement $statement) { $this->statement = $statement; $this->timeCreated = $statement->timeCreated(); $this->canSeek = $statement->canSeek(); $this->numOfRows = $statement->rowCount(); $this->numOfFields = $statement->columnCount(); $this->currentRow = -1; $this->moveNext(); }