php-src/Zend/zend_weakrefs.stub.php

38 lines
772 B
PHP
Raw Normal View History

2019-10-31 11:17:04 +00:00
<?php
/** @generate-function-entries */
2019-10-31 11:17:04 +00:00
final class WeakReference
{
public function __construct() {}
2019-10-31 11:17:04 +00:00
public static function create(): WeakReference {}
public function get(): ?object {}
}
final class WeakMap implements ArrayAccess, Countable, IteratorAggregate
{
/**
* @param object $object
* @return mixed
*/
public function offsetGet($object) {}
/**
* @param object $object
* @param mixed $value
*/
public function offsetSet($object, $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 {}
}