xref: /PHP-8.0/ext/spl/spl_fixedarray.stub.php (revision 68195bd4)
1<?php
2
3/** @generate-function-entries */
4
5class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable
6{
7    public function __construct(int $size = 0) {}
8
9    /** @return void */
10    public function __wakeup() {}
11
12    /** @return int */
13    public function count() {}
14
15    /** @return array */
16    public function toArray() {}
17
18    /** @return SplFixedArray */
19    public static function fromArray(array $array, bool $preserveKeys = true) {}
20
21    /** @return int */
22    public function getSize() {}
23
24    /** @return bool */
25    public function setSize(int $size) {}
26
27    /**
28     * @param int $index
29     * @return bool
30     */
31    public function offsetExists($index) {}
32
33    /**
34     * @param int $index
35     * @return mixed
36     */
37    public function offsetGet($index) {}
38
39    /**
40     * @param int $index
41     * @return void
42     */
43    public function offsetSet($index, mixed $value) {}
44
45    /**
46     * @param int $index
47     * @return void
48     */
49    public function offsetUnset($index) {}
50
51    public function getIterator(): Iterator {}
52}
53