ip; } /** * @return string */ public function getToken() { return $this->token; } public function getUser(): ?User { return $this->user; } public function hasIp(): bool { return !empty($this->ip); } public function hasUser(): bool { return $this->user instanceof User; } public function isSafelyGenerated(): bool { return $this->safelyGenerated; } }