zend_weakrefs.stub.php 826 B

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