Documentation

CanCheckpoint

Snapshot / Restore selected instance properties via a Checkpoint handle.

Table of Contents

checkpointCurrentState()  : Checkpoint
Snapshot selected properties into a Checkpoint for later restore()
checkpointablePropertyNames()  : array<string|int, string>

Methods

checkpointCurrentState()

Snapshot selected properties into a Checkpoint for later restore()

public checkpointCurrentState([array<string|int, mixed>|null $properties = null ][, string|null $attributeClass = null ]) : Checkpoint
Parameters
$properties : array<string|int, mixed>|null = null
$attributeClass : string|null = null
Return values
Checkpoint

checkpointablePropertyNames()

protected checkpointablePropertyNames([string|null $attributeClass = IncludeInCheckpoint::class ]) : array<string|int, string>
Parameters
$attributeClass : string|null = IncludeInCheckpoint::class
Return values
array<string|int, string>

Filtered by $attributeClass when given, else all non-static instance properties.

Search results