public function getDetails(string
$group = 'default'
): array
{ if (!
array_key_exists($group,
$this->groups
)) { throw PagerException::
forInvalidPaginationGroup($group);
} $newGroup =
$this->groups
[$group];
$newGroup['next'
] =
$this->
getNextPageURI($group);
$newGroup['previous'
] =
$this->
getPreviousPageURI($group);
$newGroup['segment'
] =
$this->segment
[$group] ?? 0;
return $newGroup;
} /**
* Sets only allowed queries on pagination links.
*/
public function only(array
$queries): self
{ $this->only =
$queries;