forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoap.stub.php
184 lines (145 loc) · 5.58 KB
/
soap.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
180
181
182
183
184
<?php
/** @generate-class-entries */
function use_soap_error_handler(bool $enable = true): bool {}
function is_soap_fault(mixed $object): bool {}
class SoapParam
{
public string $param_name;
public mixed $param_data;
public function __construct(mixed $data, string $name) {}
}
class SoapHeader
{
public string $namespace;
public string $name;
public mixed $data = null;
public bool $mustUnderstand;
public string|int|null $actor;
public function __construct(string $namespace, string $name, mixed $data = UNKNOWN, bool $mustUnderstand = false, string|int|null $actor = null) {}
}
class SoapFault extends Exception
{
public string $faultstring;
public ?string $faultcode = null;
public ?string $faultcodens = null;
public ?string $faultactor = null;
public mixed $detail = null;
public ?string $_name = null;
public mixed $headerfault = null;
public function __construct(array|string|null $code, string $string, ?string $actor = null, mixed $details = null, ?string $name = null, mixed $headerFault = null) {}
public function __toString(): string {}
}
class SoapVar
{
public int $enc_type;
public mixed $enc_value = null;
public ?string $enc_stype = null;
public ?string $enc_ns = null;
public ?string $enc_name = null;
public ?string $enc_namens = null;
public function __construct(mixed $data, ?int $encoding, ?string $typeName = null, ?string $typeNamespace = null, ?string $nodeName = null, ?string $nodeNamespace = null) {}
}
class SoapServer
{
/** @var resource */
private $service;
private ?SoapFault $__soap_fault = null;
public function __construct(?string $wsdl, array $options = []) {}
/** @tentative-return-type */
public function fault(string $code, string $string, string $actor = "", mixed $details = null, string $name = ""): void {}
/** @tentative-return-type */
public function addSoapHeader(SoapHeader $header): void {}
/** @tentative-return-type */
public function setPersistence(int $mode): void {}
/** @tentative-return-type */
public function setClass(string $class, mixed ...$args): void {}
/** @tentative-return-type */
public function setObject(object $object): void {}
/** @tentative-return-type */
public function getFunctions(): array {}
/**
* @param array|string|int $functions
* @tentative-return-type
*/
public function addFunction($functions): void {}
/** @tentative-return-type */
public function handle(?string $request = null): void {}
}
class SoapClient
{
private ?string $uri = null;
private ?int $style = null;
private ?int $use = null;
private ?string $location = null;
private bool $trace = false;
private ?int $compression = null;
/** @var resource|null */
private $sdl = null;
/** @var resource|null */
private $typemap = null;
/** @var resource|null */
private $httpsocket = null;
/** @var resource|null */
private $httpurl = null;
private ?string $_login = null;
private ?string $_password = null;
private bool $_use_digest = false;
private ?string $_digest = null;
private ?string $_proxy_host = null;
private ?int $_proxy_port = null;
private ?string $_proxy_login = null;
private ?string $_proxy_password = null;
private bool $_exceptions = true;
private ?string $_encoding = null;
private ?array $_classmap = null;
private ?int $_features = null;
private int $_connection_timeout = 0;
/** @var resource|null */
private $_stream_context = null;
private ?string $_user_agent = null;
private bool $_keep_alive = true;
private ?int $_ssl_method = null;
private int $_soap_version;
private ?int $_use_proxy = null;
private array $_cookies = [];
private ?array $__default_headers = null;
private ?SoapFault $__soap_fault = null;
private ?string $__last_request = null;
private ?string $__last_response = null;
private ?string $__last_request_headers = null;
private ?string $__last_response_headers = null;
public function __construct(?string $wsdl, array $options = []) {}
/** @tentative-return-type */
public function __call(string $name, array $args): mixed {}
/**
* @param SoapHeader|array|null $inputHeaders
* @param array $outputHeaders
* @tentative-return-type
*/
public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null): mixed {}
/** @tentative-return-type */
public function __getFunctions(): ?array {}
/** @tentative-return-type */
public function __getTypes(): ?array {}
/** @tentative-return-type */
public function __getLastRequest(): ?string {}
/** @tentative-return-type */
public function __getLastResponse(): ?string {}
/** @tentative-return-type */
public function __getLastRequestHeaders(): ?string {}
/** @tentative-return-type */
public function __getLastResponseHeaders(): ?string {}
/** @tentative-return-type */
public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): ?string {}
/** @tentative-return-type */
public function __setCookie(string $name, ?string $value = null): void {}
/** @tentative-return-type */
public function __getCookies(): array {}
/**
* @param SoapHeader|array|null $headers
* @tentative-return-type
*/
public function __setSoapHeaders($headers = null): bool {}
/** @tentative-return-type */
public function __setLocation(?string $location = null): ?string {}
}