getRecord()->id; } public function getUserId(): int { return $this->getRecord()->user; } public function getUser(): ?User { return (new Users())->get($this->getRecord()->user); } public function getClubId(): int { return $this->getRecord()->club; } public function getClub(): ?Club { return (new Clubs())->get($this->getRecord()->club); } public function getComment(): string { return is_null($this->getRecord()->comment) ? "" : $this->getRecord()->comment; } public function isHidden(): bool { return (bool) $this->getRecord()->hidden; } public function isClubPinned(): bool { return (bool) $this->getRecord()->club_pinned; } }