public function getAttemptsLeftWithSameSession(string $sessionId): int
    {
        $attemptsLeft = ((int) $this->maxAttemptsForSessionId) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameSession($sessionId, $this->banTimeInSeconds);

        return \max(0, $attemptsLeft);
    }
public function getAttemptsLeftWithSameSession(string $sessionId): int
    {
        $attemptsLeft = ((int) $this->maxAttemptsForSessionId) - $this->enhancedAuthenticationMapper->fetchAttemptsWithSameSession($sessionId, $this->banTimeInSeconds);

        return \max(0, $attemptsLeft);
    }
public function getAttemptsLeftWithSameSession ( string $ sessionId ) : int { $ attemptsLeft = ( ( int ) $ this -> maxAttemptsForSessionId ) - $ this -> enhancedAuthenticationMapper -> fetchAttemptsWithSameSession ( $ sessionId , $ this -> banTimeInSeconds ) ; return \ max ( 0 , $ attemptsLeft ) ; }
Return how many attemps are left for same session id.

@param string $sessionId

@return int Number of attempts with same session.
Return how many attemps are left for same session id .