private function requiresTfa(ResponseInterface $response)
    {
        return substr($response->getStatusCode(), 0, 1) === '4' && $response->hasHeader(self::TFA_HEADER);
    }
private function requiresTfa(ResponseInterface $response)
    {
        return substr($response->getStatusCode(), 0, 1) === '4' && $response->hasHeader(self::TFA_HEADER);
    }
private function requiresTfa ( ResponseInterface $ response ) { return substr ( $ response -> getStatusCode ( ) , 0 , 1 ) === '4' && $ response -> hasHeader ( self :: TFA_HEADER ) ; }
Check whether the response requires two-factor authentication.

@param \Psr\Http\Message\ResponseInterface $response

@return bool
Check whether the response requires two - factor authentication .