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().

asLink()

{@inheritdoc}

getId()

{@inheritdoc}

getType()

{@inheritdoc}

getSystemProperties()

{@inheritdoc}

Locale[]
getLocales()

No description

getLocale(string $code)

No description

getDefaultLocale()

Returns the default locale for this space.

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}

in BaseResource at line 49
getId()

{@inheritdoc}

in BaseResource at line 57
getType()

{@inheritdoc}

at line 31
getSystemProperties()

{@inheritdoc}

at line 39
Locale[] getLocales()

Return Value

Locale[]

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
jsonSerialize()

{@inheritdoc}