getUser(); return $user instanceof IUser ? $user->getUID() : ''; } public function getUser(): ?IUser { return $this->userSession->getUser(); } }