WeakReference::create

(PHP 7 >= 7.4.0)

WeakReference::createCreate a new weak reference

Description

public static WeakReference::create ( object $referent ) : WeakReference

Creates a new WeakReference.

Parameters

referent

The object to be weakly referenced.

Return Values

Returns the freshly instantiated object.