getString(0), userId: $result->getString(1), modId: $result->getStringOrNull(2), body: $result->getString(3), created: $result->getInteger(4) ); } public function getId(): string { return $this->id; } public function getUserId(): string { return $this->userId; } public function hasModId(): bool { return $this->modId !== null; } public function getModId(): ?string { return $this->modId; } public function hasBody(): bool { return $this->body !== ''; } public function getBody(): string { return $this->body; } public function getBodyLines(): array { return explode("\n", $this->body); } public function getCreatedTime(): int { return $this->created; } public function getCreatedAt(): DateTime { return DateTime::fromUnixTimeSeconds($this->created); } }