From 6ee33daebe70582f6a81b1652f222b3b78849698 Mon Sep 17 00:00:00 2001 From: Jack Kwakman Date: Wed, 4 Jul 2018 08:51:14 +0200 Subject: [PATCH] Added greater and less than functions. --- Query/QueryBuilder.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Query/QueryBuilder.php b/Query/QueryBuilder.php index 719f9355..841d5a7e 100644 --- a/Query/QueryBuilder.php +++ b/Query/QueryBuilder.php @@ -257,7 +257,7 @@ public function expression($value) return $this; } - + /** * {@inheritdoc} */ @@ -268,6 +268,15 @@ public function greaterThanEqual($value) return $this; } + /** + * {@inheritdoc} + */ + public function greaterThan($value) + { + $this->criteria = $this->criteria->greaterThan($value); + return $this; + } + /** * {@inheritdoc} */ @@ -278,6 +287,15 @@ public function lessThanEqual($value) return $this; } + /** + * {@inheritdoc} + */ + public function lessThan($value) + { + $this->criteria = $this->criteria->lessThan($value); + return $this; + } + /** * {@inheritdoc} */ @@ -311,4 +329,4 @@ public function getCriteria() { return $this->criteria; } -} \ No newline at end of file +}