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 24
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 47
getId()

{@inheritdoc}

in BaseResource at line 55
getType()

{@inheritdoc}

at line 31
getSystemProperties()

{@inheritdoc}

at line 39
Locale[] getLocales()

Return Value

Locale[]

at line 49
getLocale(string $code)

Parameters

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

Exceptions

InvalidArgumentException When no locale with the given code exists

at line 65
getDefaultLocale()

Returns the default locale for this space.

Exceptions

RuntimeException

at line 79
jsonSerialize()

{@inheritdoc}