soap.stub.php 5.6 KB

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