public function limit($limit, $offset = 0)
    {
        $this->limit = $limit;
        $this->offset = $offset;

        return $this;
    }
public function limit($limit, $offset = 0)
    {
        $this->limit = $limit;
        $this->offset = $offset;

        return $this;
    }
public function limit ( $ limit , $ offset = 0 ) { $ this -> limit = $ limit ; $ this -> offset = $ offset ; return $ this ; }
Limit helps to only retrieve a subset of all matched records
second parameter, offset to start from that value.

@param int $limit
@param int $offset
@return $this
Limit helps to only retrieve a subset of all matched records second parameter offset to start from that value .