src/PicORM/Collection.php
public function paginate($neededNumPage)
    {
        if ($this->_usePagination === false) {
            return $this;
        }

        // build the limit start
        $limitStart = max(0, $neededNumPage - 1) * $this->_paginationNbModelByPage;

        // limit fetch query for page $neededNumPage
        $this->_queryHelper->limit($limitStart, $this->_paginationNbModelByPage);

        return $this;
    }
public function paginate($neededNumPage)
    {
        if ($this->_usePagination === false) {
            return $this;
        }

        // build the limit start
        $limitStart = max(0, $neededNumPage - 1) * $this->_paginationNbModelByPage;

        // limit fetch query for page $neededNumPage
        $this->_queryHelper->limit($limitStart, $this->_paginationNbModelByPage);

        return $this;
    }
Paginate collection to match a num page

@param int $neededNumPage - Needed page number

@return Collection