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

Immutable object snapshots indexed by allocation, shared by aliases within one run.

Methods§

public function __construct(private array<string, Domain> $objects = [])

Parameters

$objectsarray<string, Domain>
public function rememberValue(Domain $value): void
public function import(Domain $value): void
public function copy(): self

Copies the map; its domain and term values are immutable.

Returns

self
Test cases 2
Calls 1
public function join(self $other): self

Preserves both snapshots when runs must be joined.

Parameters

$otherself

Returns

self
Test cases 1
Calls 1
public function signature(): string

The snapshots that distinguish otherwise equal variable bindings.

Returns

string
Test cases 2
Calls 2
public function invalidate(Domain $value): Domain

Private surface 1§

Implementation details, listed for orientation only.

private array<string, Domain> $objects = []

Test cases 20§

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

Dedicated tests 8
Other tests reaching this symbol 12

Relations§

Instantiated in 1
Type declarations 3