public function setPage($page)
    {
        if (empty($page)) {
            return $this->clearPage();
        }

        session()->put($this->getSessionKey(static::TYPE_PAGE), $page);

        return $this;
    }
public function setPage($page)
    {
        if (empty($page)) {
            return $this->clearPage();
        }

        session()->put($this->getSessionKey(static::TYPE_PAGE), $page);

        return $this;
    }
public function setPage ( $ page ) { if ( empty ( $ page ) ) { return $ this -> clearPage ( ) ; } session ( ) -> put ( $ this -> getSessionKey ( static :: TYPE_PAGE ) , $ page ) ; return $ this ; }
Sets active page for the current context.

@param int $page
@return $this
Sets active page for the current context .