userId = $result->getString(0); $this->hash = $result->getString(1); $this->model = $result->getString(2); $this->updated = $result->getInteger(3); } public function getUserId(): string { return $this->userId; } public function getHash(): string { return $this->hash; } public function getModel(): string { return $this->model; } public function isClassic(): bool { return $this->model === 'classic'; } public function getUpdatedTime(): int { return $this->updated; } public function getUpdatedAt(): DateTime { return DateTime::fromUnixTimeSeconds($this->updated); } }