ScrollMetadata
class ScrollMetadata implements Arrayable, ProvidesScrollMetadata
Methods
__construct(string $pageName, int|string|null $previousPage = null, int|string|null $nextPage = null, int|string|null $currentPage = null)
Create a new scroll metadata instance.
static ScrollMetadata
fromPaginator(mixed $value)
Create a scroll metadata instance from a paginator.
string
getPageName()
Get the page name parameter.
int|string|null
getPreviousPage()
Get the previous page identifier.
int|string|null
getNextPage()
Get the next page identifier.
int|string|null
getCurrentPage()
Get the current page identifier.
array
toArray()
Convert the scroll metadata instance to an array.
Details
at line 24
__construct(string $pageName, int|string|null $previousPage = null, int|string|null $nextPage = null, int|string|null $currentPage = null)
Create a new scroll metadata instance.
at line 35
static ScrollMetadata
fromPaginator(mixed $value)
Create a scroll metadata instance from a paginator.
at line 68
string
getPageName()
Get the page name parameter.
at line 76
int|string|null
getPreviousPage()
Get the previous page identifier.
at line 84
int|string|null
getNextPage()
Get the next page identifier.
at line 92
int|string|null
getCurrentPage()
Get the current page identifier.
at line 100
array
toArray()
Convert the scroll metadata instance to an array.