Skip to content

SnapshotInterface

  • Full name: \Zemit\Mvc\Model\Interfaces\SnapshotInterface

Methods

initializeSnapshot

public initializeSnapshot(?array $options = null): void

Parameters:

Parameter Type Description
$options ?array

setSnapshotBehavior

public setSnapshotBehavior(\Zemit\Mvc\Model\Behavior\Snapshot $snapshotBehavior): void

Parameters:

Parameter Type Description
$snapshotBehavior \Zemit\Mvc\Model\Behavior\Snapshot

getSnapshotBehavior

public getSnapshotBehavior(): \Zemit\Mvc\Model\Behavior\Snapshot

hasChangedCallback

public hasChangedCallback(callable $callback, bool $anyField = true): \Closure

Parameters:

Parameter Type Description
$callback callable
$anyField bool