final class SnapshotValidation
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Validates persistence data before it can affect cumulative measurements.

Type Aliases§

Snapshot = import from GrammarCoverage
History = import from GrammarCoverage

Methods§

public function decode(string $json): History

Reads saved identity and production sets while rejecting corrupt JSON.

Parameters

$jsonstring

Returns

Throws

CoverageException When JSON or required fields are invalid
Test cases 4
Called from 1
Calls 8
public function checkpoint(stdClass $checkpoint): bool

Validates diagnostic fields without treating past counters as current observations.

Parameters

$checkpointstdClass

Returns

bool
Test cases 1
Called from 1
Calls 3

Test cases 14§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 9
Other tests reaching this symbol 5

Relations§

Instantiated in 2
Method calls 2