return $this->firstVisit;
}
- /**
- * Returns all user sessions for a specific user.
- *
- * @return Session[]
- * @throws \InvalidArgumentException if the given user is a guest.
- * @since 5.4
- */
- public function getUserSessions(User $user): array
- {
- return $this->getSessions($user, false);
- }
-
/**
* Returns all sessions for a specific user.
*
* @throws \InvalidArgumentException if the given user is a guest.
* @since 5.4
*/
- private function getSessions(User $user): array
+ public function getUserSessions(User $user): array
{
if (!$user->userID) {
throw new \InvalidArgumentException("The given user is a guest.");
}
/**
- * Deletes the user sessions for a specific user, except the session with the given session id.
+ * Deletes the sessions for a specific user, except the session with the given session id.
*
* If the given session id is `null` or unknown, all sessions of the user will be deleted.
*
}
/**
- * Deletes a user session with the given session ID.
+ * Deletes a session with the given session ID.
*
* @since 5.4
*/