public function setPageSize($size)
    {
        if ( ! $size) {
            return $this->clearPageSize();
        }

        session()->put($this->getSessionKey(static::TYPE_PAGESIZE), $size);

        return $this;
    }
public function setPageSize($size)
    {
        if ( ! $size) {
            return $this->clearPageSize();
        }

        session()->put($this->getSessionKey(static::TYPE_PAGESIZE), $size);

        return $this;
    }
public function setPageSize ( $ size ) { if ( ! $ size ) { return $ this -> clearPageSize ( ) ; } session ( ) -> put ( $ this -> getSessionKey ( static :: TYPE_PAGESIZE ) , $ size ) ; return $ this ; }
Sets active page size for the current context.

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