-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathspl_observer.stub.php
179 lines (136 loc) · 4.67 KB
/
spl_observer.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<?php
/** @generate-class-entries */
interface SplObserver
{
/** @tentative-return-type */
public function update(SplSubject $subject): void;
}
interface SplSubject
{
/** @tentative-return-type */
public function attach(SplObserver $observer): void;
/** @tentative-return-type */
public function detach(SplObserver $observer): void;
/** @tentative-return-type */
public function notify(): void;
}
class SplObjectStorage implements Countable, Iterator, Serializable, ArrayAccess
{
/** @tentative-return-type */
public function attach(object $object, mixed $info = null): void {}
/** @tentative-return-type */
public function detach(object $object): void {}
/** @tentative-return-type */
public function contains(object $object): bool {}
/** @tentative-return-type */
public function addAll(SplObjectStorage $storage): int {}
/** @tentative-return-type */
public function removeAll(SplObjectStorage $storage): int {}
/** @tentative-return-type */
public function removeAllExcept(SplObjectStorage $storage): int {}
/** @tentative-return-type */
public function getInfo(): mixed {}
/** @tentative-return-type */
public function setInfo(mixed $info): void {}
/** @tentative-return-type */
public function count(int $mode = COUNT_NORMAL): int {}
/** @tentative-return-type */
public function rewind(): void {}
/** @tentative-return-type */
public function valid(): bool {}
/** @tentative-return-type */
public function key(): int {}
/** @tentative-return-type */
public function current(): object {}
/** @tentative-return-type */
public function next(): void {}
/** @tentative-return-type */
public function unserialize(string $data): void {}
/** @tentative-return-type */
public function serialize(): string {}
/**
* @param object $object
* @tentative-return-type
* @implementation-alias SplObjectStorage::contains
* @no-verify Cannot specify arg type because ArrayAccess does not
*/
public function offsetExists($object): bool {}
/**
* @param object $object
* @tentative-return-type
*/
public function offsetGet($object): mixed {}
/**
* @param object $object
* @tentative-return-type
* @implementation-alias SplObjectStorage::attach
* @no-verify Cannot specify arg type because ArrayAccess does not
*/
public function offsetSet($object, mixed $info = null): void {}
/**
* @param object $object
* @tentative-return-type
* @implementation-alias SplObjectStorage::detach
* @no-verify Cannot specify arg type because ArrayAccess does not
*/
public function offsetUnset($object): void {}
/** @tentative-return-type */
public function getHash(object $object): string {}
/** @tentative-return-type */
public function __serialize(): array {}
/** @tentative-return-type */
public function __unserialize(array $data): void {}
/** @tentative-return-type */
public function __debugInfo(): array {}
}
class MultipleIterator implements Iterator
{
/**
* @var int
* @cvalue MIT_NEED_ANY
*/
public const MIT_NEED_ANY = UNKNOWN;
/**
* @var int
* @cvalue MIT_NEED_ALL
*/
public const MIT_NEED_ALL = UNKNOWN;
/**
* @var int
* @cvalue MIT_KEYS_NUMERIC
*/
public const MIT_KEYS_NUMERIC = UNKNOWN;
/**
* @var int
* @cvalue MIT_KEYS_ASSOC
*/
public const MIT_KEYS_ASSOC = UNKNOWN;
public function __construct(int $flags = MultipleIterator::MIT_NEED_ALL|MultipleIterator::MIT_KEYS_NUMERIC) {}
/** @tentative-return-type */
public function getFlags(): int {}
/** @tentative-return-type */
public function setFlags(int $flags): void {}
/** @tentative-return-type */
public function attachIterator(Iterator $iterator, string|int|null $info = null): void {}
/** @tentative-return-type */
public function detachIterator(Iterator $iterator): void {}
/** @tentative-return-type */
public function containsIterator(Iterator $iterator): bool {}
/** @tentative-return-type */
public function countIterators(): int {}
/** @tentative-return-type */
public function rewind(): void {}
/** @tentative-return-type */
public function valid(): bool {}
/** @tentative-return-type */
public function key(): array {}
/** @tentative-return-type */
public function current(): array {}
/** @tentative-return-type */
public function next(): void {}
/**
* @tentative-return-type
* @implementation-alias SplObjectStorage::__debugInfo
*/
public function __debugInfo(): array {}
}