public function getServerVersion($details = false)
    {
        $url = Urls::URL_ADMIN_VERSION;

        if ($details) {
            $url = UrlHelper::appendParamsUrl($url, ['details' => true]);
        }

        $response = $this->getConnection()->get($url);
        $data     = $response->getJson();

        if ($details) {
            return $data;
        }

        return $data['version'];
    }
public function getServerVersion($details = false)
    {
        $url = Urls::URL_ADMIN_VERSION;

        if ($details) {
            $url = UrlHelper::appendParamsUrl($url, ['details' => true]);
        }

        $response = $this->getConnection()->get($url);
        $data     = $response->getJson();

        if ($details) {
            return $data;
        }

        return $data['version'];
    }
public function getServerVersion ( $ details = false ) { $ url = Urls :: URL_ADMIN_VERSION ; if ( $ details ) { $ url = UrlHelper :: appendParamsUrl ( $ url , [ 'details' => true ] ) ; } $ response = $ this -> getConnection ( ) -> get ( $ url ) ; $ data = $ response -> getJson ( ) ; if ( $ details ) { return $ data ; } return $ data [ 'version' ] ; }
Get the server version

This will throw if the version cannot be retrieved

@param bool $details - True to get a more detailed response

@throws Exception

@return string - a string holding the ArangoDB version
@since 1.2
Get the server version