summaryrefslogtreecommitdiff
path: root/ext/spl/spl_fixedarray.stub.php
blob: 32489d719911ae9cb4fcefeff256f3888bcec498 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php

/** @generate-class-entries */

class SplFixedArray implements IteratorAggregate, ArrayAccess, Countable
{
    public function __construct(int $size = 0) {}

    /** @return void */
    public function __wakeup() {}

    /** @return int */
    public function count() {}

    /** @return array */
    public function toArray() {}

    /** @return SplFixedArray */
    public static function fromArray(array $array, bool $preserveKeys = true) {}

    /** @return int */
    public function getSize() {}

    /** @return bool */
    public function setSize(int $size) {}

    /**
     * @param int $index
     * @return bool
     */
    public function offsetExists($index) {}

    /**
     * @param int $index
     * @return mixed
     */
    public function offsetGet($index) {}

    /**
     * @param int $index
     * @return void
     */
    public function offsetSet($index, mixed $value) {}

    /**
     * @param int $index
     * @return void
     */
    public function offsetUnset($index) {}

    public function getIterator(): Iterator {}
}