RecordStateFactory
Factory class that creates a record state
Table of Contents
Properties
- $name : string
Methods
- __construct() : mixed
- forName() : static
- fromArray() : RecordState
- createEntityPointer() : EntityPointer
- resolveAspectFieldNames() : array<string|int, mixed>
- resolveAspectFieldValues() : array<string|int, mixed>
- resolveLanguageLink() : EntityPointerLink|null
- resolveVersionLink() : EntityPointerLink|null
Properties
$name
protected
string
$name
Methods
__construct()
public
__construct(string $name) : mixed
Parameters
- $name : string
forName()
public
static forName(string $name) : static
Parameters
- $name : string
Return values
staticfromArray()
public
fromArray(array<string|int, mixed> $data[, int|string|null $pageId = null ][, int|string|null $recordId = null ]) : RecordState
Parameters
- $data : array<string|int, mixed>
- $pageId : int|string|null = null
- $recordId : int|string|null = null
Return values
RecordStatecreateEntityPointer()
protected
createEntityPointer(string|int $identifier[, string|null $name = null ]) : EntityPointer
Parameters
- $identifier : string|int
- $name : string|null = null
Tags
Return values
EntityPointerresolveAspectFieldNames()
protected
resolveAspectFieldNames() : array<string|int, mixed>
Return values
array<string|int, mixed>resolveAspectFieldValues()
protected
resolveAspectFieldValues(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>
Return values
array<string|int, mixed>resolveLanguageLink()
protected
resolveLanguageLink(array<string|int, mixed> $aspectFieldNames) : EntityPointerLink|null
Parameters
- $aspectFieldNames : array<string|int, mixed>
Return values
EntityPointerLink|nullresolveVersionLink()
protected
resolveVersionLink(array<string|int, mixed> $aspectFieldNames) : EntityPointerLink|null
Parameters
- $aspectFieldNames : array<string|int, mixed>