Copied!

Version

Version.php : 25
Final
Extends ValueObject
Implements Target

Version Limitation target. Indicates an intent to create new Version.

Properties

protected $allContentTypeIdsList

Version.php : 39

List of content types. At least one must match Limitation values.

protected array<string|int, int> $allContentTypeIdsList = []

protected $allLanguageCodesList

Version.php : 32

List of language codes of translations. At least one must match Limitation values.

protected array<string|int, string> $allLanguageCodesList = []

protected $forPublishLanguageCodesList

Version.php : 58

List of language codes of translations to publish. All must match Limitation values.

protected array<string|int, string> $forPublishLanguageCodesList = []

protected $forUpdateInitialLanguageCode

Version.php : 44

Language code of a translation used when updated, can be null for e.g. multiple translations changed.

protected string|null $forUpdateInitialLanguageCode = null

protected $forUpdateLanguageCodesList

Version.php : 51

List of language codes of translations to update. All must match Limitation values.

protected array<string|int, string> $forUpdateLanguageCodesList = []

protected $newStatus

Version.php : 69

One of the following: STATUS_DRAFT, STATUS_PUBLISHED, STATUS_ARCHIVED.

protected int|null $newStatus = null
Tags
See
VersionInfo::STATUS_DRAFT
See
VersionInfo::STATUS_PUBLISHED
See
VersionInfo::STATUS_ARCHIVED

protected $updatedFields

Version.php : 72
protected array<string|int, Field$updatedFields = []

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

public __construct([array<string, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string, mixed> [] -

publicdeleteTranslations()

Version.php : 84
public deleteTranslations(array<string|int, string> $translationsToDelete) : self

Parameters

Name Type Default value Description
$translationsToDelete array<string|int, string> -

List of language codes of translations to delete

Return values

self

publicgetTranslationsToDelete()

Version.php : 94
public getTranslationsToDelete() : array<string|int, string>

Return values

array<string|int, string>

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

protected getProperties([array<int, string> $dynamicProperties = [] ]) : array<int, string>

Override to add dynamic properties.

Parameters

Name Type Default value Description
$dynamicProperties array<int, string> []

Additional dynamic properties exposed on the object

Return values

array<int, string>

Attributes
#[Ignore]