Quittio 0.3 API

SnapshotUpcasterChain
in package

FinalYes

Brings stored snapshots step by step to the current version (v1 → v2 → … → current).

Table of Contents

Methods

__construct()  : mixed
default()  : self
Shared instance used by InvoiceData::fromSnapshot().
documentDefault()  : self
Shared instance used by DocumentData::fromSnapshot(). Documents have their own versions.
register()  : self
upcast()  : array<string, mixed>
useDefault()  : void
Replaces the shared instance of InvoiceData::fromSnapshot(); null resets it.
useDocumentDefault()  : void
Replaces the shared instance of DocumentData::fromSnapshot(); null resets it.

Methods

default()

Shared instance used by InvoiceData::fromSnapshot().

public static default() : self
Return values
self

documentDefault()

Shared instance used by DocumentData::fromSnapshot(). Documents have their own versions.

public static documentDefault() : self
Return values
self

useDefault()

Replaces the shared instance of InvoiceData::fromSnapshot(); null resets it.

public static useDefault(self|null $chain) : void
Parameters
$chain : self|null

useDocumentDefault()

Replaces the shared instance of DocumentData::fromSnapshot(); null resets it.

public static useDocumentDefault(self|null $chain) : void
Parameters
$chain : self|null
On this page

Search results