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