Documentation

LanguageRepository
in package

Table of Contents

Properties

$apiToken  : mixed
$client  : mixed
$projectId  : mixed
$termListUrl  : mixed

Methods

__construct()  : mixed
fetchTerms()  : array<string|int, mixed>|null
fromArray()  : mixed
getTerms()  : array<string|int, mixed>
getApiToken()  : string
getProjectId()  : mixed
getTermListUrl()  : mixed
setApiToken()  : mixed
setProjectId()  : mixed
setTermListUrl()  : mixed

Properties

Methods

__construct()

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

fetchTerms()

public fetchTerms([mixed $language = 'en' ]) : array<string|int, mixed>|null
Parameters
$language : mixed = 'en'
Tags
throws
GuzzleException
Return values
array<string|int, mixed>|null

fromArray()

public fromArray(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

getTerms()

public getTerms(mixed $language) : array<string|int, mixed>
Parameters
$language : mixed
Tags
throws
GuzzleException
throws
LanguageFileException
Return values
array<string|int, mixed>

setApiToken()

private setApiToken(string $apiToken) : mixed
Parameters
$apiToken : string

setProjectId()

private setProjectId(mixed $projectId) : mixed
Parameters
$projectId : mixed

setTermListUrl()

private setTermListUrl(mixed $termListUrl) : mixed
Parameters
$termListUrl : mixed

        
On this page

Search results