private function setLimitAndSetOffset()
    {
        if ($this->perPage === null) {
            $this->offset = null;
            $this->limit = null;
        } else {
            $this->offset = ($this->currentPage - 1) * $this->perPage;
            $this->limit = $this->perPage;
        }
    }
private function setLimitAndSetOffset()
    {
        if ($this->perPage === null) {
            $this->offset = null;
            $this->limit = null;
        } else {
            $this->offset = ($this->currentPage - 1) * $this->perPage;
            $this->limit = $this->perPage;
        }
    }
private function setLimitAndSetOffset ( ) { if ( $ this -> perPage === null ) { $ this -> offset = null ; $ this -> limit = null ; } else { $ this -> offset = ( $ this -> currentPage - 1 ) * $ this -> perPage ; $ this -> limit = $ this -> perPage ; } }
Pour "setter" le limit et le offset
Pour setter le limit et le offset