public function store(string $group, int $page, int $perPage, int $total, int $segment = 0)
	{
		$this->segment[$group] = $segment;

		$this->ensureGroup($group);

		$this->groups[$group]['currentPage'] = $page;
		$this->groups[$group]['perPage']     = $perPage;
		$this->groups[$group]['total']       = $total;
		$this->groups[$group]['pageCount']   = (int)ceil($total / $perPage);

		return $this;
	}
public function store(string $group, int $page, int $perPage, int $total, int $segment = 0)
	{
		$this->segment[$group] = $segment;

		$this->ensureGroup($group);

		$this->groups[$group]['currentPage'] = $page;
		$this->groups[$group]['perPage']     = $perPage;
		$this->groups[$group]['total']       = $total;
		$this->groups[$group]['pageCount']   = (int)ceil($total / $perPage);

		return $this;
	}
public function store ( string $ group , int $ page , int $ perPage , int $ total , int $ segment = 0 ) { $ this -> segment [ $ group ] = $ segment ; $ this -> ensureGroup ( $ group ) ; $ this -> groups [ $ group ] [ 'currentPage' ] = $ page ; $ this -> groups [ $ group ] [ 'perPage' ] = $ perPage ; $ this -> groups [ $ group ] [ 'total' ] = $ total ; $ this -> groups [ $ group ] [ 'pageCount' ] = ( int ) ceil ( $ total / $ perPage ) ; return $ this ; }
Stores a set of pagination data for later display. Most commonly used
by the model to automate the process.

@param string  $group
@param integer $page
@param integer $perPage
@param integer $total
@param integer $segment

@return $this
Stores a set of pagination data for later display . Most commonly used by the model to automate the process .