private function basicMath($type)
{
$args = func_get_args();
$elements = $this->arrayFlatten(array_slice($args, 1));
if (count($elements) < 1) {
throw new QueryException("The operation '{$type}' expected at least 1 argument but none provided.");
}
if (count($elements) == 1) {
return $elements[0];
} else {
return '( ' . implode(" {$type} ", $elements) . ' )';
}
}