DurableStateEntry
in package
FinalYes
Tags
Attributes
- #[Entity]
- #[Table]
- $name: 'nexus_durable_state'
Table of Contents
Properties
- $persistenceId : string
- $stateData : string
- $stateType : string
- $timestamp : DateTimeImmutable
- $version : int
- $writerId : string
Methods
- __construct() : mixed
- update() : void
Properties
$persistenceId
public private(set)
string
$persistenceId
Attributes
- #[Column]
- $name: 'persistence_id'
- $type: 'string'
- $length: 255
- #[Id]
$stateData
public private(set)
string
$stateData
Attributes
- #[Column]
- $name: 'state_data'
- $type: 'text'
$stateType
public private(set)
string
$stateType
Attributes
- #[Column]
- $name: 'state_type'
- $type: 'string'
- $length: 255
$timestamp
public private(set)
DateTimeImmutable
$timestamp
Attributes
- #[Column]
- $name: 'timestamp'
- $type: 'datetime_immutable'
$version
public private(set)
int
$version
= 1
Attributes
- #[Column]
- $name: 'version'
- $type: 'integer'
- #[Version]
$writerId
public private(set)
string
$writerId
= ''
Attributes
- #[Column]
- $name: 'writer_id'
- $type: 'string'
- $length: 26
Methods
__construct()
public
__construct(string $persistenceId, string $stateType, string $stateData, DateTimeImmutable $timestamp[, string $writerId = '' ]) : mixed
Parameters
- $persistenceId : string
- $stateType : string
- $stateData : string
- $timestamp : DateTimeImmutable
- $writerId : string = ''
update()
public
update(string $stateType, string $stateData, DateTimeImmutable $timestamp[, string $writerId = '' ]) : void
Parameters
- $stateType : string
- $stateData : string
- $timestamp : DateTimeImmutable
- $writerId : string = ''