protected function checkPingTime(SolrAdminService $solrAdminService)
    {
        try {
            $pingQueryTime = $solrAdminService->getPingRoundTripRuntime();
            $pingMessage = (int)$pingQueryTime . ' ms';
        } catch (PingFailedException $e) {
            $this->responseStatus = Status::ERROR;
            $pingMessage = 'Ping error: ' . $e->getMessage();
        }
        return $pingMessage;
    }
protected function checkPingTime(SolrAdminService $solrAdminService)
    {
        try {
            $pingQueryTime = $solrAdminService->getPingRoundTripRuntime();
            $pingMessage = (int)$pingQueryTime . ' ms';
        } catch (PingFailedException $e) {
            $this->responseStatus = Status::ERROR;
            $pingMessage = 'Ping error: ' . $e->getMessage();
        }
        return $pingMessage;
    }
protected function checkPingTime ( SolrAdminService $ solrAdminService ) { try { $ pingQueryTime = $ solrAdminService -> getPingRoundTripRuntime ( ) ; $ pingMessage = ( int ) $ pingQueryTime . ' ms' ; } catch ( PingFailedException $ e ) { $ this -> responseStatus = Status :: ERROR ; $ pingMessage = 'Ping error: ' . $ e -> getMessage ( ) ; } return $ pingMessage ; }
Checks the ping time and adds it to the report.

@param SolrAdminService $solrAdminService
@return string
Checks the ping time and adds it to the report .