WorkOS PHP SDK

PaginatedResponse
in package
implements IteratorAggregate

Table of Contents

Interfaces

IteratorAggregate

Properties

$data  : array<string|int, mixed>
$listMetadata  : array<string|int, mixed>
$fetchPage  : Closure|null

Methods

__construct()  : mixed
autoPagingIterator()  : Generator
fromArray()  : self
getIterator()  : Generator
hasMore()  : bool

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $data, array<string|int, mixed> $listMetadata[, Closure|null $fetchPage = null ]) : mixed
Parameters
$data : array<string|int, mixed>
$listMetadata : array<string|int, mixed>
$fetchPage : Closure|null = null

autoPagingIterator()

public autoPagingIterator() : Generator
Return values
Generator

fromArray()

public static fromArray(array<string|int, mixed> $response[, string|null $modelClass = null ][, Closure|null $fetchPage = null ]) : self
Parameters
$response : array<string|int, mixed>
$modelClass : string|null = null
$fetchPage : Closure|null = null
Return values
self

        
On this page

Search results