summaryrefslogtreecommitdiff
path: root/Zend/zend_weakrefs.stub.php
blob: 4074ac012284707c8d7c948154f0b1838c814bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php

/** @generate-function-entries */

final class WeakReference
{
    public function __construct() {}

    public static function create(object $object): 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 {}
}