Метод | Описание | |
---|---|---|
__construct ( object $object = null ) | Constructs a new weak reference. | |
acquire ( ) : boolean | Acquires a strong reference on that object, virtually turning the weak reference into a strong one. | |
get ( ) : object | Returns the object pointed to by the weak reference | |
release ( ) : boolean | Releases a previously acquired reference, potentially turning a strong reference back into a weak reference. | |
valid ( ) : boolean | Checks whether the object referenced still exists |
public __construct ( object $object = null ) | ||
$object | object |