private function setPage($page)
    {
        if (! is_int($page)) {
            throw new Exceptions\InvalidIntegerType(gettype($page));
        }

        // There is at least one page
        if ($page <= 0) {
            throw new Exceptions\PositiveIntegerRequired($page);
        }

        $this->page = $page;

        $this->changedPage();
    }
private function setPage($page)
    {
        if (! is_int($page)) {
            throw new Exceptions\InvalidIntegerType(gettype($page));
        }

        // There is at least one page
        if ($page <= 0) {
            throw new Exceptions\PositiveIntegerRequired($page);
        }

        $this->page = $page;

        $this->changedPage();
    }
private function setPage ( $ page ) { if ( ! is_int ( $ page ) ) { throw new Exceptions \ InvalidIntegerType ( gettype ( $ page ) ) ; } // There is at least one page if ( $ page <= 0 ) { throw new Exceptions \ PositiveIntegerRequired ( $ page ) ; } $ this -> page = $ page ; $ this -> changedPage ( ) ; }
Stores the current page.
@param int $page
@throws Exceptions\InvalidIntegerType
@throws Exceptions\PositiveIntegerRequired
Stores the current page .