public function getUser()
    {
        if (!isset($this->_user)) {
            $this->_user = new ComConnectOauthUser();
            $data = $this->_getUserData();
            if ($data) {
                foreach ($data as $key => $value) {
                    $this->_user->$key = $value;
                }
            }
        }

        return $this->_user;
    }
public function getUser()
    {
        if (!isset($this->_user)) {
            $this->_user = new ComConnectOauthUser();
            $data = $this->_getUserData();
            if ($data) {
                foreach ($data as $key => $value) {
                    $this->_user->$key = $value;
                }
            }
        }

        return $this->_user;
    }
public function getUser ( ) { if ( ! isset ( $ this -> _user ) ) { $ this -> _user = new ComConnectOauthUser ( ) ; $ data = $ this -> _getUserData ( ) ; if ( $ data ) { foreach ( $ data as $ key => $ value ) { $ this -> _user -> $ key = $ value ; } } } return $ this -> _user ; }
Return a user object representing the logged-in user.

@return ComConnectOauthUser
Return a user object representing the logged - in user .