xref: /PHP-8.1/ext/soap/soap.stub.php (revision 841d0b30)
1<?php
2
3/** @generate-class-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 string $param_name;
12    public mixed $param_data;
13
14    public function __construct(mixed $data, string $name) {}
15}
16
17class SoapHeader
18{
19    public string $namespace;
20    public string $name;
21    public mixed $data = null;
22    public bool $mustUnderstand;
23    public string|int|null $actor;
24
25    public function __construct(string $namespace, string $name, mixed $data = UNKNOWN, bool $mustUnderstand = false, string|int|null $actor = null) {}
26}
27
28class SoapFault extends Exception
29{
30    public string $faultstring;
31    public ?string $faultcode = null;
32    public ?string $faultcodens = null;
33    public ?string $faultactor = null;
34    public mixed $detail = null;
35    public ?string $_name = null;
36    public mixed $headerfault = null;
37
38    public function __construct(array|string|null $code, string $string, ?string $actor = null, mixed $details = null, ?string $name = null, mixed $headerFault = null) {}
39
40    public function __toString(): string {}
41}
42
43class SoapVar
44{
45    public int $enc_type;
46    public mixed $enc_value = null;
47    public ?string $enc_stype = null;
48    public ?string $enc_ns = null;
49    public ?string $enc_name = null;
50    public ?string $enc_namens = null;
51
52    public function __construct(mixed $data, ?int $encoding, ?string $typeName = null, ?string $typeNamespace = null, ?string $nodeName = null, ?string $nodeNamespace = null) {}
53}
54
55class SoapServer
56{
57    /** @var resource */
58    private $service;
59
60    private ?SoapFault $__soap_fault = null;
61
62    public function __construct(?string $wsdl, array $options = []) {}
63
64    /** @tentative-return-type */
65    public function fault(string $code, string $string, string $actor = "", mixed $details = null, string $name = ""): void {}
66
67    /** @tentative-return-type */
68    public function addSoapHeader(SoapHeader $header): void {}
69
70    /** @tentative-return-type */
71    public function setPersistence(int $mode): void {}
72
73    /** @tentative-return-type */
74    public function setClass(string $class, mixed ...$args): void {}
75
76    /** @tentative-return-type */
77    public function setObject(object $object): void {}
78
79    /** @tentative-return-type */
80    public function getFunctions(): array {}
81
82    /**
83     * @param array|string|int $functions
84     * @tentative-return-type
85     */
86    public function addFunction($functions): void {}
87
88    /** @tentative-return-type */
89    public function handle(?string $request = null): void {}
90}
91
92class SoapClient
93{
94    private ?string $uri = null;
95    private ?int $style = null;
96    private ?int $use = null;
97    private ?string $location = null;
98    private bool $trace = false;
99    private ?int $compression = null;
100    /** @var resource|null */
101    private $sdl = null;
102    /** @var resource|null */
103    private $typemap = null;
104    /** @var resource|null */
105    private $httpsocket = null;
106    /** @var resource|null */
107    private $httpurl = null;
108
109    private ?string $_login = null;
110    private ?string $_password = null;
111    private bool $_use_digest = false;
112    private ?string $_digest = null;
113    private ?string $_proxy_host = null;
114    private ?int $_proxy_port = null;
115    private ?string $_proxy_login = null;
116    private ?string $_proxy_password = null;
117    private bool $_exceptions = true;
118    private ?string $_encoding = null;
119    private ?array $_classmap = null;
120    private ?int $_features = null;
121    private int $_connection_timeout = 0;
122    /** @var resource|null */
123    private $_stream_context = null;
124    private ?string $_user_agent = null;
125    private bool $_keep_alive = true;
126    private ?int $_ssl_method = null;
127    private int $_soap_version;
128    private ?int $_use_proxy = null;
129    private array $_cookies = [];
130    private ?array $__default_headers = null;
131    private ?SoapFault $__soap_fault = null;
132    private ?string $__last_request = null;
133    private ?string $__last_response = null;
134    private ?string $__last_request_headers = null;
135    private ?string $__last_response_headers = null;
136
137    public function __construct(?string $wsdl, array $options = []) {}
138
139    /** @tentative-return-type */
140    public function __call(string $name, array $args): mixed {}
141
142    /**
143     * @param SoapHeader|array|null $inputHeaders
144     * @param array $outputHeaders
145     * @tentative-return-type
146     */
147    public function __soapCall(string $name, array $args, ?array $options = null, $inputHeaders = null, &$outputHeaders = null): mixed {}
148
149    /** @tentative-return-type */
150    public function __getFunctions(): ?array {}
151
152    /** @tentative-return-type */
153    public function __getTypes(): ?array {}
154
155    /** @tentative-return-type */
156    public function __getLastRequest(): ?string {}
157
158    /** @tentative-return-type */
159    public function __getLastResponse(): ?string {}
160
161    /** @tentative-return-type */
162    public function __getLastRequestHeaders(): ?string {}
163
164    /** @tentative-return-type */
165    public function __getLastResponseHeaders(): ?string {}
166
167    /** @tentative-return-type */
168    public function __doRequest(string $request, string $location, string $action, int $version, bool $oneWay = false): ?string {}
169
170    /** @tentative-return-type */
171    public function __setCookie(string $name, ?string $value = null): void {}
172
173    /** @tentative-return-type */
174    public function __getCookies(): array {}
175
176    /**
177     * @param SoapHeader|array|null $headers
178     * @tentative-return-type
179     */
180    public function __setSoapHeaders($headers = null): bool {}
181
182    /** @tentative-return-type */
183    public function __setLocation(?string $location = null): ?string {}
184}
185