class Response implements Arrayable, Stringable (View source)

Traits

Methods

array
tokens()

Get the response tokens.

Token|Data|null
tokenAt(int $index)

Get the response token at the given index.

array
tokensAfter(int $index)

Get the response tokens after the given index.

__construct(array $tokens)

Constructor.

array
toArray()

Get the instance as an array.

string
__toString()

Get a JSON representation of the response tokens.

Details

array tokens()

Get the response tokens.

Return Value

array

Token|Data|null tokenAt(int $index)

Get the response token at the given index.

Parameters

int $index

Return Value

Token|Data|null

array tokensAfter(int $index)

Get the response tokens after the given index.

Parameters

int $index

Return Value

array

__construct(array $tokens)

Constructor.

Parameters

array $tokens

array toArray()

Get the instance as an array.

Return Value

array

string __toString()

Get a JSON representation of the response tokens.

Return Value

string