private function setCurrentPage($currentPage, $fixRange = true)
    {
        if ($fixRange === true) {
            if (!$this->pageInRange($currentPage)) {
                $currentPage = 1;
            }
        }

        $this->currentPage = (int) $currentPage;
        return $this;
    }
private function setCurrentPage($currentPage, $fixRange = true)
    {
        if ($fixRange === true) {
            if (!$this->pageInRange($currentPage)) {
                $currentPage = 1;
            }
        }

        $this->currentPage = (int) $currentPage;
        return $this;
    }
private function setCurrentPage ( $ currentPage , $ fixRange = true ) { if ( $ fixRange === true ) { if ( ! $ this -> pageInRange ( $ currentPage ) ) { $ currentPage = 1 ; } } $ this -> currentPage = ( int ) $ currentPage ; return $ this ; }
Defines current page

@param integer|string $currentPage
@param boolean $fixRange Whether page range should be fixed if wrong one supplied
@return \Krystal\Paginate\Paginator
Defines current page