Cursor
class Cursor implements Arrayable
Methods
Create a new cursor instance.
Get the given parameter from the cursor.
Get the given parameters from the cursor.
Determine whether the cursor points to the next set of items.
Determine whether the cursor points to the previous set of items.
Get the array representation of the cursor.
Get the encoded string representation of the cursor to construct a URL.
Get a cursor instance from the encoded string representation.
Details
at line 24
__construct(array $parameters, bool $pointsToNextItems = true)
Create a new cursor instance.
at line 41
mixed
parameter(string $parameterName)
Get the given parameter from the cursor.
at line 56
array
parameters(array $parameterNames)
Get the given parameters from the cursor.
at line 66
bool
pointsToNextItems()
Determine whether the cursor points to the next set of items.
at line 74
bool
pointsToPreviousItems()
Determine whether the cursor points to the previous set of items.
at line 84
array
toArray()
Get the array representation of the cursor.
at line 96
string
encode()
Get the encoded string representation of the cursor to construct a URL.
at line 104
static Cursor|null
fromEncoded(mixed $encodedString)
Get a cursor instance from the encoded string representation.