xref: /PHP-8.0/ext/soap/soap.stub.php (revision 788abb8c)
1<?php
2
3/** @generate-function-entries */
4
5function use_soap_error_handler(bool $enable = true): bool {}
6
7function is_soap_fault(mixed $object): bool {}
8
9class SoapParam
10{
11    public function __construct(mixed $data, string $name) {}
12}
13
14class SoapHeader
15{
16    public function __construct(string $namespace, string $name, mixed $data = UNKNOWN, bool $mustUnderstand = false, string|int|null $actor = null) {}
17}
18
19class SoapFault extends Exception
20{
21    public function __construct(array|string|null $code, string $string, ?string $actor = null, mixed $details = null, ?string $name = null, mixed $headerFault = null) {}
22
23    public function __toString(): string {}
24}
25
26class SoapVar
27{
28    public function __construct(mixed $data, ?int $encoding, ?string $typeName = null, ?string $typeNamespace = null, ?string $nodeName = null, ?string $nodeNamespace = null) {}
29}
30
31class SoapServer
32{
33    public function __construct(?string $wsdl, array $options = []) {}
34
35    /** @return void */
36    public function fault(string $code, string $string, string $actor = "", mixed $details = null, string $name = "") {}
37
38    /** @return void */
39    public function addSoapHeader(SoapHeader $header) {}
40
41    /** @return void */
42    public function setPersistence(int $mode) {}
43
44    /** @return void */
45    public function setClass(string $class, mixed ...$args) {}
46
47    /** @return void */
48    public function setObject(object $object) {}
49
50    /** @return array */
51    public function getFunctions() {}
52
53    /**
54     * @param array|string|int $functions
55     * @return void
56     */
57    public function addFunction($functions) {}
58
59    /** @return void */
60    public function handle(?string $request = null) {}
61}
62
63class SoapClient
64{
65    public function __construct(?string $wsdl, array $options = []) {}
66
67    /** @return mixed */
68    public function __call(string $name, array $args) {}
69
70    /**
71     * @param SoapHeader|array|null $inputHeaders
72     * @param array $outputHeaders
73     * @return mixed
74     */
75    public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null) {}
76
77    /** @return array|null */
78    public function __getFunctions() {}
79
80    /** @return array|null */
81    public function __getTypes() {}
82
83    /** @return string|null */
84    public function __getLastRequest() {}
85
86    /** @return string|null */
87    public function __getLastResponse() {}
88
89    /** @return string|null */
90    public function __getLastRequestHeaders() {}
91
92    /** @return string|null */
93    public function __getLastResponseHeaders() {}
94
95    /** @return string|null */
96    public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false) {}
97
98    /** @return void */
99    public function __setCookie(string $name, ?string $value = null) {}
100
101    /** @return array */
102    public function __getCookies() {}
103
104    /**
105     * @param SoapHeader|array|null $headers
106     * @return bool
107     */
108    public function __setSoapHeaders($headers = null) {}
109
110    /** @return string|null */
111    public function __setLocation(?string $location = null) {}
112}
113