WeakRef extension stub file for code completion purposes
WARNING: Do not include this file
◆ __construct()
| __construct |
( |
|
$object = null | ) |
|
Constructs a new weak reference.
- Parameters
-
◆ acquire()
Acquires a strong reference on that object, virtually turning the weak reference into a strong one.
- Returns
- bool
◆ get()
Returns the object pointed to by the weak reference
- Returns
- object
◆ release()
Releases a previously acquired reference, potentially turning a strong reference back into a weak reference.
- Returns
- bool
◆ valid()
Checks whether the object referenced still exists
- Returns
- bool
The documentation for this class was generated from the following file:
- src/spl/stubs/weakref.php