-
Notifications
You must be signed in to change notification settings - Fork 575
Expand file tree
/
Copy pathSplObjectStorage.stub
More file actions
66 lines (54 loc) · 1.41 KB
/
SplObjectStorage.stub
File metadata and controls
66 lines (54 loc) · 1.41 KB
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
<?php
/**
* @template TObject of object
* @template TData
*
* @template-implements Iterator<int, TObject>
* @template-implements SeekableIterator<int, TObject>
* @template-implements ArrayAccess<TObject, TData>
*/
class SplObjectStorage implements Countable, Iterator, SeekableIterator, Serializable, ArrayAccess
{
/**
* @param \SplObjectStorage<TObject, TData> $storage
*/
public function addAll(SplObjectStorage $storage): void { }
/**
* @param TObject $object
* @param TData $data
*/
public function attach(object $object, $data = null): void { }
/**
* @param TObject $object
*/
public function contains(object $object): bool { }
/**
* @param TObject $object
*/
public function detach(object $object): void { }
/**
* @param TObject $object
*/
public function getHash(object $object): string { }
/**
* @return TData
*/
public function getInfo() { }
/**
* @param \SplObjectStorage<*, *> $storage
*/
public function removeAll(SplObjectStorage $storage): void { }
/**
* @param \SplObjectStorage<*, *> $storage
*/
public function removeAllExcept(SplObjectStorage $storage): void { }
/**
* @param TData $data
*/
public function setInfo($data): void { }
/**
* @param TObject $offset
* @return TData
*/
public function offsetGet($offset);
}