summaryrefslogtreecommitdiff
path: root/ext/spl/spl_dllist.stub.php
blob: 05f122204ee0ccc2ccae01ae17814402ba4ea56e (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php

/** @generate-function-entries */

class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializable
{
    /** @return void */
    public function add(int $index, mixed $value) {}

    /** @return mixed */
    public function pop() {}

    /** @return mixed */
    public function shift() {}

    /** @return void */
    public function push(mixed $value) {}

    /** @return void */
    public function unshift(mixed $value) {}

    /** @return mixed */
    public function top() {}

    /** @return mixed */
    public function bottom() {}

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

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

    /** @return bool */
    public function isEmpty() {}

    /** @return int */
    public function setIteratorMode(int $mode) {}

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

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

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

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

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

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

    /** @return mixed */
    public function current() {}

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

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

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

    /** @return bool */
    public function valid() {}

    /** @return void */
    public function unserialize(string $data) {}

    /** @return string */
    public function serialize() {}

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

    /** @return void */
    public function __unserialize(array $data) {}
}

class SplQueue extends SplDoublyLinkedList
{
    /**
     * @return void
     * @implementation-alias SplDoublyLinkedList::push
     */
    public function enqueue(mixed $value) {}

    /**
     * @return mixed
     * @implementation-alias SplDoublyLinkedList::shift
     */
    public function dequeue() {}
}

class SplStack extends SplDoublyLinkedList
{
}