trait JsonFetchTrait (View source)

Methods

array|null
fetchJson(string $url)
array|null
array|null
postJson(string $url, array $payload)
array|null
array|null
postForm(string $url, array $payload)
array|null
ClientInterface
ClientInterface
RequestFactoryInterface
RequestFactoryInterface
StreamFactoryInterface
StreamFactoryInterface

Details

fetchJson

protected array|null fetchJson(string $url)

No description

Parameters

string $url

Return Value

array|null

postJson

protected array|null postJson(string $url, array $payload)

No description

Parameters

string $url
array $payload

Return Value

array|null

postForm

protected array|null postForm(string $url, array $payload)

No description

Parameters

string $url
array $payload

Return Value

array|null

jsonFetchClient

abstract protected ClientInterface jsonFetchClient()

No description

Return Value

ClientInterface

jsonFetchRequestFactory

abstract protected RequestFactoryInterface jsonFetchRequestFactory()

No description

Return Value

RequestFactoryInterface

jsonFetchStreamFactory

abstract protected StreamFactoryInterface jsonFetchStreamFactory()

No description

Return Value

StreamFactoryInterface