1<?php 2 3/** @generate-function-entries */ 4 5final class WeakReference 6{ 7 public function __construct() {} 8 9 public static function create(object $object): WeakReference {} 10 11 public function get(): ?object {} 12} 13 14final class WeakMap implements ArrayAccess, Countable, IteratorAggregate 15{ 16 /** 17 * @param object $object 18 */ 19 public function offsetGet($object): mixed {} 20 21 /** @param object $object */ 22 public function offsetSet($object, mixed $value): void {} 23 24 /** @param object $object */ 25 public function offsetExists($object): bool {} 26 27 /** @param object $object */ 28 public function offsetUnset($object): void {} 29 30 public function count(): int {} 31 32 public function getIterator(): Iterator {} 33} 34