CAS_Client::_getUser PHP Method

_getUser() private method

This method returns the CAS user's login name.
private _getUser ( ) : string
return string the login name of the authenticated user
    private function _getUser()
    {
        // This is likely a duplicate check that could be removed....
        if (empty($this->_user)) {
            phpCAS::error('this method should be used only after ' . __CLASS__ . '::forceAuthentication() or ' . __CLASS__ . '::isAuthenticated()');
        }
        return $this->_user;
    }
CAS_Client