src/Webiny/AnalyticsDb/Query/AbstractQuery.php
public function limit($limit, $skip = null)
    {
        $this->pipeline['$limit'] = $limit;
        if (!empty($skip)) {
            $this->pipeline['$skip'] = $skip;
        }

        return $this;
    }
public function limit($limit, $skip = null)
    {
        $this->pipeline['$limit'] = $limit;
        if (!empty($skip)) {
            $this->pipeline['$skip'] = $skip;
        }

        return $this;
    }
public function limit ( $ limit , $ skip = null ) { $ this -> pipeline [ '$limit' ] = $ limit ; if ( ! empty ( $ skip ) ) { $ this -> pipeline [ '$skip' ] = $ skip ; } return $ this ; }
Set the result limit and offset.

@param int      $limit How many results to return.
@param int|null $skip  How many results to skip.

@return $this
Set the result limit and offset .