RecordStateFactory
Factory class that creates a record state
Table of Contents
Properties
- $name : string
Methods
- __construct() : mixed
- forName() : self
- fromArray() : RecordState
- createEntityPointer() : EntityPointer
- resolveAspectFieldNames() : array<string, string|null>
- 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) : self
Parameters
- $name : string
Return values
selffromArray()
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|null $identifier[, string|null $name = null ]) : EntityPointer
Parameters
- $identifier : string|int|null
- $name : string|null = null
Tags
Return values
EntityPointerresolveAspectFieldNames()
protected
resolveAspectFieldNames() : array<string, string|null>
Return values
array<string, string|null>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>