public function limit($limit, $offset = null)
    {
        $this->_limit = $limit > 0 ? (int)$limit : null;
        $this->_offset = $offset > 0 ? (int)$offset : null;

        return $this;
    }
public function limit($limit, $offset = null)
    {
        $this->_limit = $limit > 0 ? (int)$limit : null;
        $this->_offset = $offset > 0 ? (int)$offset : null;

        return $this;
    }
public function limit ( $ limit , $ offset = null ) { $ this -> _limit = $ limit > 0 ? ( int ) $ limit : null ; $ this -> _offset = $ offset > 0 ? ( int ) $ offset : null ; return $ this ; }
Sets a LIMIT clause, optionally a offset clause

@param int $limit
@param int $offset

@return static
Sets a LIMIT clause optionally a offset clause