class DynamicEntry extends LocalizedResource implements EntryInterface

Properties

protected string $localeCode The code of the currently active locale from LocalizedResource
protected SystemProperties $sys
protected Client $client

Methods

__construct(object $fields, SystemProperties $sys, Client $client = null)

Entry constructor.

$this
setLocale(Locale|string $locale)

Set the locale for this instance. All future calls to a getter will return the information for this locale.

string
getLocale()

The locale code for the currently set locale.

string
getLocaleFromInput(Locale|string|null $input = null)

No description

getId()

No description

getRevision()

No description

getUpdatedAt()

No description

getCreatedAt()

No description

getSpace()

No description

getContentType()

No description

__call($name, $arguments)

No description

jsonSerialize()

No description

Details

at line 33
__construct(object $fields, SystemProperties $sys, Client $client = null)

Entry constructor.

Parameters

object $fields
SystemProperties $sys
Client $client

in LocalizedResource at line 54
$this setLocale(Locale|string $locale)

Set the locale for this instance. All future calls to a getter will return the information for this locale.

Parameters

Locale|string $locale The locale code as string or an instance of Locale.

Return Value

$this

Exceptions

InvalidArgumentException When $locale is not one of the locales supported by the space.

in LocalizedResource at line 76
string getLocale()

The locale code for the currently set locale.

Return Value

string

in LocalizedResource at line 90
protected string getLocaleFromInput(Locale|string|null $input = null)

Parameters

Locale|string|null $input

Return Value

string

Exceptions

InvalidArgumentException When $locale is not one of the locales supported by the space.

at line 42
getId()

at line 47
getRevision()

at line 52
getUpdatedAt()

at line 57
getCreatedAt()

at line 62
getSpace()

at line 67
getContentType()

at line 72
__call($name, $arguments)

Parameters

$name
$arguments

at line 166
jsonSerialize()