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 22
__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 33
static ScrollMetadata
fromPaginator(mixed $value)
Create a scroll metadata instance from a paginator.
at line 61
string
getPageName()
Get the page name parameter.
at line 69
int|string|null
getPreviousPage()
Get the previous page identifier.
at line 77
int|string|null
getNextPage()
Get the next page identifier.
at line 85
int|string|null
getCurrentPage()
Get the current page identifier.
at line 93
array
toArray()
Convert the scroll metadata instance to an array.