Skip to content

Commit

Permalink
Added greater and less than functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwakman authored Jul 4, 2018
1 parent 5ac7ce8 commit 6ee33da
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions Query/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function expression($value)

return $this;
}

/**
* {@inheritdoc}
*/
Expand All @@ -268,6 +268,15 @@ public function greaterThanEqual($value)
return $this;
}

/**
* {@inheritdoc}
*/
public function greaterThan($value)
{
$this->criteria = $this->criteria->greaterThan($value);
return $this;
}

/**
* {@inheritdoc}
*/
Expand All @@ -278,6 +287,15 @@ public function lessThanEqual($value)
return $this;
}

/**
* {@inheritdoc}
*/
public function lessThan($value)
{
$this->criteria = $this->criteria->lessThan($value);
return $this;
}

/**
* {@inheritdoc}
*/
Expand Down Expand Up @@ -311,4 +329,4 @@ public function getCriteria()
{
return $this->criteria;
}
}
}

0 comments on commit 6ee33da

Please sign in to comment.