Exakat\Graph\Gremlin3::serverInfo PHP Метод

serverInfo() публичный Метод

public serverInfo ( )
    public function serverInfo()
    {
        if ($this->status === self::UNCHECKED) {
            $this->checkConfiguration();
        }
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, 'http://' . $this->config->neo4j_host);
        curl_setopt($ch, CURLOPT_PORT, $this->config->neo4j_port);
        curl_setopt($ch, CURLOPT_HEADER, 0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        $res = curl_exec($ch);
        curl_close($ch);
        return $res;
    }