protected function performPingRequest($useCache = true)
    {
        $cacheKey = (string)($this);
        if ($useCache && isset(static::$pingCache[$cacheKey])) {
            return static::$pingCache[$cacheKey];
        }

        $pingQuery = $this->client->createPing();
        $pingResult = $this->createAndExecuteRequest($pingQuery);

        if ($useCache) {
            static::$pingCache[$cacheKey] = $pingResult;
        }

        return $pingResult;
    }
protected function performPingRequest($useCache = true)
    {
        $cacheKey = (string)($this);
        if ($useCache && isset(static::$pingCache[$cacheKey])) {
            return static::$pingCache[$cacheKey];
        }

        $pingQuery = $this->client->createPing();
        $pingResult = $this->createAndExecuteRequest($pingQuery);

        if ($useCache) {
            static::$pingCache[$cacheKey] = $pingResult;
        }

        return $pingResult;
    }
protected function performPingRequest ( $ useCache = true ) { $ cacheKey = ( string ) ( $ this ) ; if ( $ useCache && isset ( static :: $ pingCache [ $ cacheKey ] ) ) { return static :: $ pingCache [ $ cacheKey ] ; } $ pingQuery = $ this -> client -> createPing ( ) ; $ pingResult = $ this -> createAndExecuteRequest ( $ pingQuery ) ; if ( $ useCache ) { static :: $ pingCache [ $ cacheKey ] = $ pingResult ; } return $ pingResult ; }
Performs a ping request and returns the result.

@param boolean $useCache indicates if the ping result should be cached in the instance or not
@return ResponseAdapter
Performs a ping request and returns the result .