public function getLastPage(string $group = 'default')
	{
		$this->ensureGroup($group);

		if (! is_numeric($this->groups[$group]['total']) || ! is_numeric($this->groups[$group]['perPage']))
		{
			return null;
		}

		return (int)ceil($this->groups[$group]['total'] / $this->groups[$group]['perPage']);
	}
public function getLastPage(string $group = 'default')
	{
		$this->ensureGroup($group);

		if (! is_numeric($this->groups[$group]['total']) || ! is_numeric($this->groups[$group]['perPage']))
		{
			return null;
		}

		return (int)ceil($this->groups[$group]['total'] / $this->groups[$group]['perPage']);
	}
public function getLastPage ( string $ group = 'default' ) { $ this -> ensureGroup ( $ group ) ; if ( ! is_numeric ( $ this -> groups [ $ group ] [ 'total' ] ) || ! is_numeric ( $ this -> groups [ $ group ] [ 'perPage' ] ) ) { return null ; } return ( int ) ceil ( $ this -> groups [ $ group ] [ 'total' ] / $ this -> groups [ $ group ] [ 'perPage' ] ) ; }
Returns the last page, if we have a total that we can calculate with.

@param string $group

@return integer|null
Returns the last page if we have a total that we can calculate with .