Guides

JsonLoader
in package

Table of Contents

Properties

$client  : HttpClientInterface

Methods

__construct()  : mixed
loadJsonFromString()  : array<string|int, mixed>
loadJsonFromUrl()  : array<string|int, mixed>

Properties

$client read-only

private HttpClientInterface $client

Methods

__construct()

public __construct(HttpClientInterface $client) : mixed
Parameters
$client : HttpClientInterface

loadJsonFromString()

public loadJsonFromString(string $jsonString[, string $url = '' ]) : array<string|int, mixed>
Parameters
$jsonString : string
$url : string = ''
Return values
array<string|int, mixed>

loadJsonFromUrl()

public loadJsonFromUrl(string $url) : array<string|int, mixed>
Parameters
$url : string
Return values
array<string|int, mixed>

        
On this page

Search results