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 20
__construct(array $parameters, bool $pointsToNextItems = true)
Create a new cursor instance.
at line 31
string|int|null
parameter(string $parameterName)
Get the given parameter from the cursor.
at line 46
array
parameters(array $parameterNames)
Get the given parameters from the cursor.
at line 56
bool
pointsToNextItems()
Determine whether the cursor points to the next set of items.
at line 64
bool
pointsToPreviousItems()
Determine whether the cursor points to the previous set of items.
at line 74
array
toArray()
Get the array representation of the cursor.
at line 84
string
encode()
Get the encoded string representation of the cursor to construct a URL.
at line 92
static Cursor|null
fromEncoded(string|null $encodedString)
Get a cursor instance from the encoded string representation.