Quittio 0.3 API

SnapshotUpcaster
in

Migrates a stored invoice snapshot from one version to the next one.

Snapshots of issued invoices are never rewritten; upcasters run in memory on read.

Table of Contents

Methods

from()  : int
Version this upcaster reads; it produces version from() + 1.
upcast()  : array<string, mixed>

Methods

from()

Version this upcaster reads; it produces version from() + 1.

public from() : int
Return values
int

upcast()

public upcast(array<string, mixed> $snapshot) : array<string, mixed>
Parameters
$snapshot : array<string, mixed>

without the "_version" key

Return values
array<string, mixed>
On this page

Search results