xref: /PHP-8.4/ext/spl/spl_fixedarray.stub.php (revision c8b45aa5)
1<?php
2
3/** @generate-class-entries */
4
5class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable, JsonSerializable
6{
7    public function __construct(int $size = 0) {}
8
9    /** @tentative-return-type */
10    #[\Deprecated(since: '8.4', message: 'this method is obsolete, as serialization hooks are provided by __unserialize() and __serialize()')]
11    public function __wakeup(): void {}
12
13    public function __serialize(): array {}
14
15    public function __unserialize(array $data): void {}
16
17    /** @tentative-return-type */
18    public function count(): int {}
19
20    /** @tentative-return-type */
21    public function toArray(): array {}
22
23    /** @tentative-return-type */
24    public static function fromArray(array $array, bool $preserveKeys = true): SplFixedArray {}
25
26    /** @tentative-return-type */
27    public function getSize(): int {}
28
29    /** @tentative-return-type */
30    public function setSize(int $size): true {}
31
32    /**
33     * @param int $index
34     * @tentative-return-type
35     */
36    public function offsetExists($index): bool {}
37
38    /**
39     * @param int $index
40     * @tentative-return-type
41     */
42    public function offsetGet($index): mixed {}
43
44    /**
45     * @param int $index
46     * @tentative-return-type
47     */
48    public function offsetSet($index, mixed $value): void {}
49
50    /**
51     * @param int $index
52     * @tentative-return-type
53     */
54    public function offsetUnset($index): void {}
55
56    public function getIterator(): Iterator {}
57
58    public function jsonSerialize(): array {}
59}
60