result = $result; $this->changes = $changes; } /** @inheritdoc */ public function fetchNumeric() { if ($this->result === null) { return false; } return $this->result->fetchArray(SQLITE3_NUM); } /** @inheritdoc */ public function fetchAssociative() { if ($this->result === null) { return false; } return $this->result->fetchArray(SQLITE3_ASSOC); } /** @inheritdoc */ public function fetchOne() { return FetchUtils::fetchOne($this); } /** @inheritdoc */ public function fetchAllNumeric(): array { return FetchUtils::fetchAllNumeric($this); } /** @inheritdoc */ public function fetchAllAssociative(): array { return FetchUtils::fetchAllAssociative($this); } /** @inheritdoc */ public function fetchFirstColumn(): array { return FetchUtils::fetchFirstColumn($this); } public function rowCount(): int { return $this->changes; } public function columnCount(): int { if ($this->result === null) { return 0; } return $this->result->numColumns(); } public function free(): void { if ($this->result === null) { return; } $this->result->finalize(); $this->result = null; } }