src/ORM/DataList.php
public function limit($limit, $offset = 0)
    {
        return $this->alterDataQuery(function (DataQuery $query) use ($limit, $offset) {
            $query->limit($limit, $offset);
        });
    }
public function limit($limit, $offset = 0)
    {
        return $this->alterDataQuery(function (DataQuery $query) use ($limit, $offset) {
            $query->limit($limit, $offset);
        });
    }
public function limit ( $ limit , $ offset = 0 ) { return $ this -> alterDataQuery ( function ( DataQuery $ query ) use ( $ limit , $ offset ) { $ query -> limit ( $ limit , $ offset ) ; } ) ; }
Return a new DataList instance with the records returned in this query
restricted by a limit clause.

@param int $limit
@param int $offset
@return static
Return a new DataList instance with the records returned in this query restricted by a limit clause .