php-src/Zend/zend_weakrefs.stub.php

40 lines
826 B
PHP
Raw Normal View History

2019-10-31 11:17:04 +00:00
<?php
/** @generate-class-entries */
2019-10-31 11:17:04 +00:00
2021-07-20 03:35:44 +00:00
/**
* @strict-properties
* @not-serializable
*/
final class WeakReference
{
public function __construct() {}
2019-10-31 11:17:04 +00:00
2020-07-16 18:46:45 +00:00
public static function create(object $object): WeakReference {}
public function get(): ?object {}
}
2021-07-20 03:35:44 +00:00
/**
* @strict-properties
* @not-serializable
*/
final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
{
/** @param object $object */
public function offsetGet($object): mixed {}
/** @param object $object */
public function offsetSet($object, mixed $value): void {}
/** @param object $object */
public function offsetExists($object): bool {}
/** @param object $object */
public function offsetUnset($object): void {}
public function count(): int {}
public function getIterator(): Iterator {}
}