diff --git a/src/SelectQuery.php b/src/SelectQuery.php index 57d666e6fc6b28def6ea351444eb0331e23cfefe..95a5e5487c16bdb8d749e8c53a358ec9f3b3c600 100644 --- a/src/SelectQuery.php +++ b/src/SelectQuery.php @@ -44,6 +44,13 @@ class SelectQuery implements SelectQueryInterface { */ public $conditions = []; + /** + * Starting elements number for query result. + * + * @var int + */ + public $offset; + /** * SelectQuery constructor. * @@ -125,6 +132,10 @@ class SelectQuery implements SelectQueryInterface { $query .= "+LIMIT+" . (int) $this->limit; } + if ($this->offset) { + $query .= "+OFFSET+" . (int) $this->offset; + } + return $query; } // @codingStandardsIgnoreEnd