WorkOS PHP SDK

ListMetadata
in package
implements JsonSerializable uses JsonSerializableTrait

Read onlyYes

Cursor-based pagination metadata.

Table of Contents

Interfaces

JsonSerializable

Properties

$after  : string|null
Cursor for the next page of results.
$before  : string|null
Cursor for the previous page of results.

Methods

__construct()  : mixed
fromArray()  : self
jsonSerialize()  : array<string|int, mixed>
toArray()  : array<string|int, mixed>

Properties

$after

Cursor for the next page of results.

public string|null $after = null

$before

Cursor for the previous page of results.

public string|null $before = null

Methods

__construct()

public __construct([string|null $after = null ][, string|null $before = null ]) : mixed
Parameters
$after : string|null = null
$before : string|null = null

fromArray()

public static fromArray(array<string|int, mixed> $data) : self
Parameters
$data : array<string|int, mixed>
Return values
self

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
On this page

Search results