Doctrine\OrientDB\Binding\HttpBinding::getLocation PHP Method

getLocation() protected method

Creates a relative URL for the specified OrientDB method call.
protected getLocation ( string $method, string $database = null, array $arguments = null ) : string
$method string
$database string
$arguments array
return string
    protected function getLocation($method, $database = null, array $arguments = null)
    {
        $location = "http://{$this->server}/{$method}";
        if ($database) {
            $location .= '/' . rawurlencode($database);
        }
        if ($arguments) {
            $location .= '/' . implode('/', array_map('rawurlencode', $arguments));
        }
        return $location;
    }