ListData
class ListData extends Data (View source)
Traits
Methods
lookup(string $field)
Find the immediate successor token of the given field in the list.
string
__toString()
Get the list as a string.
Details
abstract array
tokens()
Get the response tokens.
array
tokensAfter(int $index)
Get the response tokens after the given index.
in
Data at line 16
__construct(array $tokens)
Constructor.
in
Data at line 33
Token|Data|null
first()
Get the first token.
in
Data at line 41
Token|Data|null
last()
Get the last token.
in
Data at line 49
bool
contains(array|string $needles)
Determine if the data contains a specific value.
in
Data at line 65
array
values()
Get all the token's values.
Data|Token|null
lookup(string $field)
Find the immediate successor token of the given field in the list.
string
__toString()
Get the list as a string.