forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspl_dllist.stub.php
124 lines (93 loc) · 3 KB
/
spl_dllist.stub.php
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
116
117
118
119
120
121
122
123
124
<?php
/** @generate-class-entries */
class SplDoublyLinkedList implements Iterator, Countable, ArrayAccess, Serializable
{
/** @cvalue SPL_DLLIST_IT_LIFO */
public const int IT_MODE_LIFO = UNKNOWN;
/** @cvalue SPL_DLLIST_IT_FIFO */
public const int IT_MODE_FIFO = UNKNOWN;
/** @cvalue SPL_DLLIST_IT_DELETE */
public const int IT_MODE_DELETE = UNKNOWN;
/** @cvalue SPL_DLLIST_IT_KEEP */
public const int IT_MODE_KEEP = UNKNOWN;
/** @tentative-return-type */
public function add(int $index, mixed $value): void {}
/** @tentative-return-type */
public function pop(): mixed {}
/** @tentative-return-type */
public function shift(): mixed {}
/** @tentative-return-type */
public function push(mixed $value): void {}
/** @tentative-return-type */
public function unshift(mixed $value): void {}
/** @tentative-return-type */
public function top(): mixed {}
/** @tentative-return-type */
public function bottom(): mixed {}
/** @tentative-return-type */
public function __debugInfo(): array {}
/** @tentative-return-type */
public function count(): int {}
/** @tentative-return-type */
public function isEmpty(): bool {}
/** @tentative-return-type */
public function setIteratorMode(int $mode): int {}
/** @tentative-return-type */
public function getIteratorMode(): int {}
/**
* @param int $index
* @tentative-return-type
*/
public function offsetExists($index): bool {}
/**
* @param int $index
* @tentative-return-type
*/
public function offsetGet($index): mixed {}
/**
* @param int|null $index
* @tentative-return-type
*/
public function offsetSet($index, mixed $value): void {}
/**
* @param int $index
* @tentative-return-type
*/
public function offsetUnset($index): void {}
/** @tentative-return-type */
public function rewind(): void {}
/** @tentative-return-type */
public function current(): mixed {}
/** @tentative-return-type */
public function key(): int {}
/** @tentative-return-type */
public function prev(): void {}
/** @tentative-return-type */
public function next(): void {}
/** @tentative-return-type */
public function valid(): bool {}
/** @tentative-return-type */
public function unserialize(string $data): void {}
/** @tentative-return-type */
public function serialize(): string {}
/** @tentative-return-type */
public function __serialize(): array {}
/** @tentative-return-type */
public function __unserialize(array $data): void {}
}
class SplQueue extends SplDoublyLinkedList
{
/**
* @tentative-return-type
* @implementation-alias SplDoublyLinkedList::push
*/
public function enqueue(mixed $value): void {}
/**
* @tentative-return-type
* @implementation-alias SplDoublyLinkedList::shift
*/
public function dequeue(): mixed {}
}
class SplStack extends SplDoublyLinkedList
{
}