class Environment extends BaseResource

Properties

protected Environment $sys
protected Locale[] $locales

Methods

__construct(array $data)

Resources in this SDK should not be built using $new Class().

Link
asLink()

{@inheritdoc}

string
getId()

{@inheritdoc}

string
getType()

{@inheritdoc}

array
getLocales()

No description

getLocale(string $code)

No description

getDefaultLocale()

Returns the default locale for this space.

array
jsonSerialize()

{@inheritdoc}

Details

in BaseResource at line 26
protected __construct(array $data)

Resources in this SDK should not be built using $new Class().

This method is only useful in testing environments, where the resource needs to be subclasses and this method made public.

Parameters

array $data

{@inheritdoc}

Return Value

Link

in BaseResource at line 49
string getId()

{@inheritdoc}

Return Value

string

in BaseResource at line 57
string getType()

{@inheritdoc}

Return Value

string

at line 31
Environment getSystemProperties()

{@inheritdoc}

Return Value

Environment

at line 39
array getLocales()

Return Value

array

at line 51
Locale getLocale(string $code)

Parameters

string $code Code of the locale to fetch the object for

Return Value

Locale

Exceptions

InvalidArgumentException When no locale with the given code exists

at line 72
Locale getDefaultLocale()

Returns the default locale for this space.

Return Value

Locale

Exceptions

RuntimeException

at line 86
array jsonSerialize()

{@inheritdoc}

Return Value

array