xref: /php-src/ext/soap/soap.stub.php (revision 92059106)
1<?php
2
3/** @generate-class-entries */
4
5namespace Soap {
6    /**
7     * @strict-properties
8     * @not-serializable
9     */
10    final class Url
11    {
12    }
13
14    /**
15     * @strict-properties
16     * @not-serializable
17     */
18    final class Sdl
19    {
20    }
21}
22
23namespace {
24    /**
25     * @var int
26     * @cvalue SOAP_1_1
27     */
28    const SOAP_1_1 = UNKNOWN;
29    /**
30     * @var int
31     * @cvalue SOAP_1_2
32     */
33    const SOAP_1_2 = UNKNOWN;
34    /**
35     * @var int
36     * @cvalue SOAP_PERSISTENCE_SESSION
37     */
38    const SOAP_PERSISTENCE_SESSION = UNKNOWN;
39    /**
40     * @var int
41     * @cvalue SOAP_PERSISTENCE_REQUEST
42     */
43    const SOAP_PERSISTENCE_REQUEST = UNKNOWN;
44    /**
45     * @var int
46     * @cvalue SOAP_FUNCTIONS_ALL
47     */
48    const SOAP_FUNCTIONS_ALL = UNKNOWN;
49
50    /**
51     * @var int
52     * @cvalue SOAP_ENCODED
53     */
54    const SOAP_ENCODED = UNKNOWN;
55    /**
56     * @var int
57     * @cvalue SOAP_LITERAL
58     */
59    const SOAP_LITERAL = UNKNOWN;
60
61    /**
62     * @var int
63     * @cvalue SOAP_RPC
64     */
65    const SOAP_RPC = UNKNOWN;
66    /**
67     * @var int
68     * @cvalue SOAP_DOCUMENT
69     */
70    const SOAP_DOCUMENT = UNKNOWN;
71
72    /**
73     * @var int
74     * @cvalue SOAP_ACTOR_NEXT
75     */
76    const SOAP_ACTOR_NEXT = UNKNOWN;
77    /**
78     * @var int
79     * @cvalue SOAP_ACTOR_NONE
80     */
81    const SOAP_ACTOR_NONE = UNKNOWN;
82    /**
83     * @var int
84     * @cvalue SOAP_ACTOR_UNLIMATERECEIVER
85     */
86    const SOAP_ACTOR_UNLIMATERECEIVER = UNKNOWN;
87
88    /**
89     * @var int
90     * @cvalue SOAP_COMPRESSION_ACCEPT
91     */
92    const SOAP_COMPRESSION_ACCEPT = UNKNOWN;
93    /**
94     * @var int
95     * @cvalue SOAP_COMPRESSION_GZIP
96     */
97    const SOAP_COMPRESSION_GZIP = UNKNOWN;
98    /**
99     * @var int
100     * @cvalue SOAP_COMPRESSION_DEFLATE
101     */
102    const SOAP_COMPRESSION_DEFLATE = UNKNOWN;
103
104    /**
105     * @var int
106     * @cvalue SOAP_AUTHENTICATION_BASIC
107     */
108    const SOAP_AUTHENTICATION_BASIC = UNKNOWN;
109    /**
110     * @var int
111     * @cvalue SOAP_AUTHENTICATION_DIGEST
112     */
113    const SOAP_AUTHENTICATION_DIGEST = UNKNOWN;
114
115    /**
116     * @var int
117     * @cvalue UNKNOWN_TYPE
118     */
119    const UNKNOWN_TYPE = UNKNOWN;
120
121    /**
122     * @var int
123     * @cvalue XSD_STRING
124     */
125    const XSD_STRING = UNKNOWN;
126    /**
127     * @var int
128     * @cvalue XSD_BOOLEAN
129     */
130    const XSD_BOOLEAN = UNKNOWN;
131    /**
132     * @var int
133     * @cvalue XSD_DECIMAL
134     */
135    const XSD_DECIMAL = UNKNOWN;
136    /**
137     * @var int
138     * @cvalue XSD_FLOAT
139     */
140    const XSD_FLOAT = UNKNOWN;
141    /**
142     * @var int
143     * @cvalue XSD_DOUBLE
144     */
145    const XSD_DOUBLE = UNKNOWN;
146    /**
147     * @var int
148     * @cvalue XSD_DURATION
149     */
150    const XSD_DURATION = UNKNOWN;
151    /**
152     * @var int
153     * @cvalue XSD_DATETIME
154     */
155    const XSD_DATETIME = UNKNOWN;
156    /**
157     * @var int
158     * @cvalue XSD_TIME
159     */
160    const XSD_TIME = UNKNOWN;
161    /**
162     * @var int
163     * @cvalue XSD_DATE
164     */
165    const XSD_DATE = UNKNOWN;
166    /**
167     * @var int
168     * @cvalue XSD_GYEARMONTH
169     */
170    const XSD_GYEARMONTH = UNKNOWN;
171    /**
172     * @var int
173     * @cvalue XSD_GYEAR
174     */
175    const XSD_GYEAR = UNKNOWN;
176    /**
177     * @var int
178     * @cvalue XSD_GMONTHDAY
179     */
180    const XSD_GMONTHDAY = UNKNOWN;
181    /**
182     * @var int
183     * @cvalue XSD_GDAY
184     */
185    const XSD_GDAY = UNKNOWN;
186    /**
187     * @var int
188     * @cvalue XSD_GMONTH
189     */
190    const XSD_GMONTH = UNKNOWN;
191    /**
192     * @var int
193     * @cvalue XSD_HEXBINARY
194     */
195    const XSD_HEXBINARY = UNKNOWN;
196    /**
197     * @var int
198     * @cvalue XSD_BASE64BINARY
199     */
200    const XSD_BASE64BINARY = UNKNOWN;
201    /**
202     * @var int
203     * @cvalue XSD_ANYURI
204     */
205    const XSD_ANYURI = UNKNOWN;
206    /**
207     * @var int
208     * @cvalue XSD_QNAME
209     */
210    const XSD_QNAME = UNKNOWN;
211    /**
212     * @var int
213     * @cvalue XSD_NOTATION
214     */
215    const XSD_NOTATION = UNKNOWN;
216
217    /**
218     * @var int
219     * @cvalue XSD_NORMALIZEDSTRING
220     */
221    const XSD_NORMALIZEDSTRING = UNKNOWN;
222    /**
223     * @var int
224     * @cvalue XSD_TOKEN
225     */
226    const XSD_TOKEN = UNKNOWN;
227    /**
228     * @var int
229     * @cvalue XSD_LANGUAGE
230     */
231    const XSD_LANGUAGE = UNKNOWN;
232    /**
233     * @var int
234     * @cvalue XSD_NMTOKEN
235     */
236    const XSD_NMTOKEN = UNKNOWN;
237    /**
238     * @var int
239     * @cvalue XSD_NAME
240     */
241    const XSD_NAME = UNKNOWN;
242    /**
243     * @var int
244     * @cvalue XSD_NCNAME
245     */
246    const XSD_NCNAME = UNKNOWN;
247    /**
248     * @var int
249     * @cvalue XSD_ID
250     */
251    const XSD_ID = UNKNOWN;
252    /**
253     * @var int
254     * @cvalue XSD_IDREF
255     */
256    const XSD_IDREF = UNKNOWN;
257    /**
258     * @var int
259     * @cvalue XSD_IDREFS
260     */
261    const XSD_IDREFS = UNKNOWN;
262    /**
263     * @var int
264     * @cvalue XSD_ENTITY
265     */
266    const XSD_ENTITY = UNKNOWN;
267    /**
268     * @var int
269     * @cvalue XSD_ENTITIES
270     */
271    const XSD_ENTITIES = UNKNOWN;
272    /**
273     * @var int
274     * @cvalue XSD_INTEGER
275     */
276    const XSD_INTEGER = UNKNOWN;
277    /**
278     * @var int
279     * @cvalue XSD_NONPOSITIVEINTEGER
280     */
281    const XSD_NONPOSITIVEINTEGER = UNKNOWN;
282    /**
283     * @var int
284     * @cvalue XSD_NEGATIVEINTEGER
285     */
286    const XSD_NEGATIVEINTEGER = UNKNOWN;
287    /**
288     * @var int
289     * @cvalue XSD_LONG
290     */
291    const XSD_LONG = UNKNOWN;
292    /**
293     * @var int
294     * @cvalue XSD_INT
295     */
296    const XSD_INT = UNKNOWN;
297    /**
298     * @var int
299     * @cvalue XSD_SHORT
300     */
301    const XSD_SHORT = UNKNOWN;
302    /**
303     * @var int
304     * @cvalue XSD_BYTE
305     */
306    const XSD_BYTE = UNKNOWN;
307    /**
308     * @var int
309     * @cvalue XSD_NONNEGATIVEINTEGER
310     */
311    const XSD_NONNEGATIVEINTEGER = UNKNOWN;
312    /**
313     * @var int
314     * @cvalue XSD_UNSIGNEDLONG
315     */
316    const XSD_UNSIGNEDLONG = UNKNOWN;
317    /**
318     * @var int
319     * @cvalue XSD_UNSIGNEDINT
320     */
321    const XSD_UNSIGNEDINT = UNKNOWN;
322    /**
323     * @var int
324     * @cvalue XSD_UNSIGNEDSHORT
325     */
326    const XSD_UNSIGNEDSHORT = UNKNOWN;
327    /**
328     * @var int
329     * @cvalue XSD_UNSIGNEDBYTE
330     */
331    const XSD_UNSIGNEDBYTE = UNKNOWN;
332    /**
333     * @var int
334     * @cvalue XSD_POSITIVEINTEGER
335     */
336    const XSD_POSITIVEINTEGER = UNKNOWN;
337    /**
338     * @var int
339     * @cvalue XSD_NMTOKENS
340     */
341    const XSD_NMTOKENS = UNKNOWN;
342    /**
343     * @var int
344     * @cvalue XSD_ANYTYPE
345     */
346    const XSD_ANYTYPE = UNKNOWN;
347    /**
348     * @var int
349     * @cvalue XSD_ANYXML
350     */
351    const XSD_ANYXML = UNKNOWN;
352
353    /**
354     * @var int
355     * @cvalue APACHE_MAP
356     */
357    const APACHE_MAP = UNKNOWN;
358
359    /**
360     * @var int
361     * @cvalue SOAP_ENC_OBJECT
362     */
363    const SOAP_ENC_OBJECT = UNKNOWN;
364    /**
365     * @var int
366     * @cvalue SOAP_ENC_ARRAY
367     */
368    const SOAP_ENC_ARRAY = UNKNOWN;
369
370    /**
371     * @var int
372     * @cvalue XSD_1999_TIMEINSTANT
373     */
374    const XSD_1999_TIMEINSTANT = UNKNOWN;
375
376    /**
377     * @var string
378     * @cvalue XSD_NAMESPACE
379     */
380    const XSD_NAMESPACE = UNKNOWN;
381    /**
382     * @var string
383     * @cvalue XSD_1999_NAMESPACE
384     */
385    const XSD_1999_NAMESPACE = UNKNOWN;
386
387    /**
388     * @var int
389     * @cvalue SOAP_SINGLE_ELEMENT_ARRAYS
390     */
391    const SOAP_SINGLE_ELEMENT_ARRAYS = UNKNOWN;
392    /**
393     * @var int
394     * @cvalue SOAP_WAIT_ONE_WAY_CALLS
395     */
396    const SOAP_WAIT_ONE_WAY_CALLS = UNKNOWN;
397    /**
398     * @var int
399     * @cvalue SOAP_USE_XSI_ARRAY_TYPE
400     */
401    const SOAP_USE_XSI_ARRAY_TYPE = UNKNOWN;
402
403    /**
404     * @var int
405     * @cvalue WSDL_CACHE_NONE
406     */
407    const WSDL_CACHE_NONE = UNKNOWN;
408    /**
409     * @var int
410     * @cvalue WSDL_CACHE_DISK
411     */
412    const WSDL_CACHE_DISK = UNKNOWN;
413    /**
414     * @var int
415     * @cvalue WSDL_CACHE_MEMORY
416     */
417    const WSDL_CACHE_MEMORY = UNKNOWN;
418    /**
419     * @var int
420     * @cvalue WSDL_CACHE_BOTH
421     */
422    const WSDL_CACHE_BOTH = UNKNOWN;
423
424    /* New SOAP SSL Method Constants */
425
426    /**
427     * @var int
428     * @cvalue SOAP_SSL_METHOD_TLS
429     */
430    const SOAP_SSL_METHOD_TLS = UNKNOWN;
431    /**
432     * @var int
433     * @cvalue SOAP_SSL_METHOD_SSLv2
434     */
435    const SOAP_SSL_METHOD_SSLv2 = UNKNOWN;
436    /**
437     * @var int
438     * @cvalue SOAP_SSL_METHOD_SSLv3
439     */
440    const SOAP_SSL_METHOD_SSLv3 = UNKNOWN;
441    /**
442     * @var int
443     * @cvalue SOAP_SSL_METHOD_SSLv23
444     */
445    const SOAP_SSL_METHOD_SSLv23 = UNKNOWN;
446
447    function use_soap_error_handler(bool $enable = true): bool {}
448
449    function is_soap_fault(mixed $object): bool {}
450
451    class SoapParam
452    {
453        public string $param_name;
454        public mixed $param_data;
455
456        public function __construct(mixed $data, string $name) {}
457    }
458
459    class SoapHeader
460    {
461        public string $namespace;
462        public string $name;
463        public mixed $data = null;
464        public bool $mustUnderstand;
465        public string|int|null $actor;
466
467        public function __construct(string $namespace, string $name, mixed $data = UNKNOWN, bool $mustUnderstand = false, string|int|null $actor = null) {}
468    }
469
470    class SoapFault extends Exception
471    {
472        public string $faultstring;
473        public ?string $faultcode = null;
474        public ?string $faultcodens = null;
475        public ?string $faultactor = null;
476        public mixed $detail = null;
477        public ?string $_name = null;
478        public mixed $headerfault = null;
479
480        public function __construct(array|string|null $code, string $string, ?string $actor = null, mixed $details = null, ?string $name = null, mixed $headerFault = null) {}
481
482        public function __toString(): string {}
483    }
484
485    class SoapVar
486    {
487        public int $enc_type;
488        public mixed $enc_value = null;
489        public ?string $enc_stype = null;
490        public ?string $enc_ns = null;
491        public ?string $enc_name = null;
492        public ?string $enc_namens = null;
493
494        public function __construct(mixed $data, ?int $encoding, ?string $typeName = null, ?string $typeNamespace = null, ?string $nodeName = null, ?string $nodeNamespace = null) {}
495    }
496
497    class SoapServer
498    {
499        private ?SoapFault $__soap_fault = null;
500
501        public function __construct(?string $wsdl, array $options = []) {}
502
503        /** @tentative-return-type */
504        public function fault(string $code, string $string, string $actor = "", mixed $details = null, string $name = ""): void {}
505
506        /** @tentative-return-type */
507        public function addSoapHeader(SoapHeader $header): void {}
508
509        /** @tentative-return-type */
510        public function setPersistence(int $mode): void {}
511
512        /** @tentative-return-type */
513        public function setClass(string $class, mixed ...$args): void {}
514
515        /** @tentative-return-type */
516        public function setObject(object $object): void {}
517
518        /** @tentative-return-type */
519        public function getFunctions(): array {}
520
521        /**
522         * @param array|string|int $functions
523         * @tentative-return-type
524         */
525        public function addFunction($functions): void {}
526
527        /** @tentative-return-type */
528        public function handle(?string $request = null): void {}
529    }
530
531    class SoapClient
532    {
533        private ?string $uri = null;
534        private ?int $style = null;
535        private ?int $use = null;
536        private ?string $location = null;
537        private bool $trace = false;
538        private ?int $compression = null;
539        private ?Soap\Sdl $sdl = null;
540        private ?array $typemap = null;
541        /** @var resource|null */
542        private $httpsocket = null;
543        private ?Soap\Url $httpurl = null;
544
545        private ?string $_login = null;
546        private ?string $_password = null;
547        private bool $_use_digest = false;
548        private ?string $_digest = null;
549        private ?string $_proxy_host = null;
550        private ?int $_proxy_port = null;
551        private ?string $_proxy_login = null;
552        private ?string $_proxy_password = null;
553        private bool $_exceptions = true;
554        private ?string $_encoding = null;
555        private ?array $_classmap = null;
556        private ?int $_features = null;
557        private int $_connection_timeout = 0;
558        /** @var resource|null */
559        private $_stream_context = null;
560        private ?string $_user_agent = null;
561        private bool $_keep_alive = true;
562        private ?int $_ssl_method = null;
563        private int $_soap_version;
564        private ?int $_use_proxy = null;
565        private array $_cookies = [];
566        private ?array $__default_headers = null;
567        private ?SoapFault $__soap_fault = null;
568        private ?string $__last_request = null;
569        private ?string $__last_response = null;
570        private ?string $__last_request_headers = null;
571        private ?string $__last_response_headers = null;
572
573        public function __construct(?string $wsdl, array $options = []) {}
574
575        /** @tentative-return-type */
576        public function __call(string $name, array $args): mixed {}
577
578        /**
579         * @param SoapHeader|array|null $inputHeaders
580         * @param array $outputHeaders
581         * @tentative-return-type
582         */
583        public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null): mixed {}
584
585        /** @tentative-return-type */
586        public function __getFunctions(): ?array {}
587
588        /** @tentative-return-type */
589        public function __getTypes(): ?array {}
590
591        /** @tentative-return-type */
592        public function __getLastRequest(): ?string {}
593
594        /** @tentative-return-type */
595        public function __getLastResponse(): ?string {}
596
597        /** @tentative-return-type */
598        public function __getLastRequestHeaders(): ?string {}
599
600        /** @tentative-return-type */
601        public function __getLastResponseHeaders(): ?string {}
602
603        /** @tentative-return-type */
604        public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): ?string {}
605
606        /** @tentative-return-type */
607        public function __setCookie(string $name, ?string $value = null): void {}
608
609        /** @tentative-return-type */
610        public function __getCookies(): array {}
611
612        /**
613         * @param SoapHeader|array|null $headers
614         * @tentative-return-type
615         */
616        public function __setSoapHeaders($headers = null): bool {}
617
618        /** @tentative-return-type */
619        public function __setLocation(?string $location = null): ?string {}
620    }
621}
622