Nexus API Reference

SnapshotStrategy
in package

Read onlyYes
FinalYes
Tags
psalm-api

Table of Contents

Methods

everyN()  : self
never()  : self
predicate()  : self
shouldSnapshot()  : bool

Methods

everyN()

public static everyN(int $n) : self
Parameters
$n : int
Return values
self

predicate()

public static predicate(callable(object, object, int): bool $fn) : self
Parameters
$fn : callable(object, object, int): bool
Return values
self

shouldSnapshot()

public shouldSnapshot(object $state, object $event, int $sequenceNr) : bool
Parameters
$state : object
$event : object
$sequenceNr : int
Return values
bool

        
On this page

Search results