ListResources
class ListResources implements Method
Traits
Properties
| protected string|null | $cursor | from PaginatesList | |
| protected int|null | $limit | from PaginatesList |
Methods
string
listType()
Get the list response key.
nextPage(string|null $cursor)
Create the request for the next page.
hydrate(array $payloads)
Hydrate the listed resources by URI.
from
PaginatesList
__construct(string|null $cursor = null, int|null $limit = null)
Create a resource list request.
Details
at line 31
protected string
listType()
Get the list response key.
at line 39
protected ListResources
nextPage(string|null $cursor)
Create the request for the next page.
at line 50
protected Collection
hydrate(array $payloads)
Hydrate the listed resources by URI.
in
PaginatesList at line 40
string
method()
Get the list method name.
in
PaginatesList at line 50
array
params()
Get the current page parameters.
in
PaginatesList at line 60
Collection
handle(Protocol $protocol)
Fetch and hydrate the requested primitives.
in
PaginatesList at line 70
protected array
fetch(Protocol $protocol)
Fetch pages up to the requested limit.
at line 22
__construct(string|null $cursor = null, int|null $limit = null)
Create a resource list request.