public function currentPage()
    {
        if (isset($this->pages[self::NEXT])) {
            $page = $this->pages[self::NEXT] - 1;
        } else {
            $page = $this->pages[self::PREV] + 1;
        }

        return $page;
    }
public function currentPage()
    {
        if (isset($this->pages[self::NEXT])) {
            $page = $this->pages[self::NEXT] - 1;
        } else {
            $page = $this->pages[self::PREV] + 1;
        }

        return $page;
    }
public function currentPage ( ) { if ( isset ( $ this -> pages [ self :: NEXT ] ) ) { $ page = $ this -> pages [ self :: NEXT ] - 1 ; } else { $ page = $ this -> pages [ self :: PREV ] + 1 ; } return $ page ; }
Current page number based on the Link header
@return int Current page number
Current page number based on the Link header