mini\Util\IdentityMap::remember() Method

public

Signature

public function remember(object $obj, string|int $id): void

Parameters

Name Type Default Description
$obj object required Documentation missing
$id string|int required Documentation missing

Returns

void

Documentation

Store an object with its identifier

Associates the given object with the provided identifier using a weak reference. If an object with the same ID already exists, it will be replaced.

The object can be garbage collected when all external references are removed, at which point it will automatically be removed from the identity map.

Source

src/Util/IdentityMap.php:147-152