This repository has been archived by the owner on Sep 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstandard_classes.php
149 lines (120 loc) · 2.81 KB
/
standard_classes.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
<?php
// Declaration file for standard PHP classes and classes of common extensions
// == "Core" ==
class stdClass
{
}
class __PHP_Incomplete_Class
{
}
class Directory
{
public $path;
public $handle;
public close(resource $dir_handle = $this) {}
public read(resource $dir_handle = $this) {}
public rewind(resouce $dir_handle = $this) {}
}
class Exception
{
protected $message;
protected $code;
protected $file;
protected $line;
public __construct(string $message = "", int $code = 0, Exception $previous = NULL) {}
final public getMessage() {}
final public getPrevious() {}
final public getCode() {}
final public getFile() {}
final public getLine() {}
final public getTrace() {}
final public getTraceAsString() {}
public __toString() {}
final private __clone() {}
}
class ErrorException extends Exception
{
protected $severity;
public __construct(string $message = "", int $code = 0, int $severity = 1, string $filename = __FILE__, int $lineno = __LINE__, Exception $previous = NULL) {}
final public getSeverity() {}
}
class php_user_filter
{
public $filtername;
public $params;
public filter(resource $in, resource $out, int &$consumed, bool $closing) {}
public onClose() {}
public onCreate() {}
}
class Closure
{
private __construct() {}
public static bind(Closure $closure, object $newthis, mixed $newscope = "static") {}
public bindTo(object $newthis, mixed $newscope = "static") {}
}
// == SPL Exceptions ==
class BadFunctionCallException extends LogicException
{
}
class BadMethodCallException extends BadFunctionCallException
{
}
class DomainException extends LogicException
{
}
class InvalidArgumentException extends LogicException
{
}
class LengthException extends LogicException
{
}
class LogicException extends Exception
{
}
class OutOfBoundsException extends RuntimeException
{
}
class OutOfRangeException extends LogicException
{
}
class OverflowException extends RuntimeException
{
}
class RangeException extends RuntimeException
{
}
class RuntimeException extends Exception
{
}
class UnderflowException extends RuntimeException
{
}
class UnexpectedValueException extends RuntimeException
{
}
// == ==
class Traversable
{
}
class Iterator extends Traversable
{
abstract public current() {}
abstract public key() {}
abstract public next() {}
abstract public rewind() {}
abstract public valid() {}
}
// Note: Generator objects cannot be instantiated via the "new" operator.
// http://php.net/manual/en/class.generator.php
class Generator implements Iterator
{
public current() {}
public key() {}
public next() {}
public rewind() {}
public send(mixed $value) {}
public throw(Exception $exception) {}
public valid() {}
public __wakeup() {}
}
?>