class Environment extends BaseResource

Properties

protected Client $client from BaseResource
protected SystemProperties $sys from BaseResource
protected Locale[] $locales

Methods

__construct(array $data)

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

asLink()

{@inheritdoc}

getId()

{@inheritdoc}

getType()

{@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 36
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

in BaseResource at line 50
SystemProperties getSystemProperties()

{@inheritdoc}

Return Value

SystemProperties

{@inheritdoc}

in BaseResource at line 69
getId()

{@inheritdoc}

in BaseResource at line 77
getType()

{@inheritdoc}

at line 22
Locale[] getLocales()

Return Value

Locale[]

at line 34
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 55
Locale getDefaultLocale()

Returns the default locale for this space.

Return Value

Locale

Exceptions

RuntimeException

at line 69
jsonSerialize()

{@inheritdoc}