diff --git a/Database/Condition/MathematicsCondition.php b/Database/Condition/MathematicsCondition.php index b1b283ff..ec078b13 100644 --- a/Database/Condition/MathematicsCondition.php +++ b/Database/Condition/MathematicsCondition.php @@ -17,57 +17,62 @@ class MathematicsCondition extends Condition */ public function builder() { - $this->value = (float)$this->value; - return $this->{strtolower($this->type)}(); + return $this->{strtolower($this->type)}((float)$this->value); } /** + * @param $value * @return string */ - public function eq() + public function eq($value) { - return $this->column . ' = ' . $this->value; + return $this->column . ' = ' . $value; } /** + * @param $value * @return string */ - public function neq() + public function neq($value) { - return $this->column . ' <> ' . $this->value; + return $this->column . ' <> ' . $value; } /** + * @param $value * @return string */ - public function gt() + public function gt($value) { - return $this->column . ' > ' . $this->value; + return $this->column . ' > ' . $value; } /** + * @param $value * @return string */ - public function egt() + public function egt($value) { - return $this->column . ' >= ' . $this->value; + return $this->column . ' >= ' . $value; } /** + * @param $value * @return string */ - public function lt() + public function lt($value) { - return $this->column . ' < ' . $this->value; + return $this->column . ' < ' . $value; } /** + * @param $value * @return string */ - public function elt() + public function elt($value) { - return $this->column . ' <= ' . $this->value; + return $this->column . ' <= ' . $value; } }