PaginatedResponse
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
$data
read-only
public
array<string|int, mixed>
$data
public
array<string|int, mixed>
$listMetadata
$fetchPage
read-only
private
Closure|null
$fetchPage
= null
__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
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
-
getIterator()
public
getIterator() : Generator
hasMore()
public
hasMore() : bool