public function getUserDetails(TokenCredentials $tokenCredentials, $force = false)
    {
        $data = $this->fetchUserDetails($tokenCredentials, $force);

        return $this->userDetails($data, $tokenCredentials);
    }
public function getUserDetails(TokenCredentials $tokenCredentials, $force = false)
    {
        $data = $this->fetchUserDetails($tokenCredentials, $force);

        return $this->userDetails($data, $tokenCredentials);
    }
public function getUserDetails ( TokenCredentials $ tokenCredentials , $ force = false ) { $ data = $ this -> fetchUserDetails ( $ tokenCredentials , $ force ) ; return $ this -> userDetails ( $ data , $ tokenCredentials ) ; }
Get user details by providing valid token credentials.

@param TokenCredentials $tokenCredentials
@param bool             $force

@return \League\OAuth1\Client\Server\User
Get user details by providing valid token credentials .