-
Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathsimplexml.stub.php
81 lines (55 loc) · 2.84 KB
/
simplexml.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
<?php
/** @generate-class-entries */
function simplexml_load_file(string $filename, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {}
function simplexml_load_string(string $data, ?string $class_name = SimpleXMLElement::class, int $options = 0, string $namespace_or_prefix = "", bool $is_prefix = false): SimpleXMLElement|false {}
function simplexml_import_dom(object $node, ?string $class_name = SimpleXMLElement::class): ?SimpleXMLElement {}
/** @not-serializable */
class SimpleXMLElement implements Stringable, Countable, RecursiveIterator
{
/** @tentative-return-type */
public function xpath(string $expression): array|null|false {}
/** @tentative-return-type */
public function registerXPathNamespace(string $prefix, string $namespace): bool {}
/** @tentative-return-type */
public function asXML(?string $filename = null): string|bool {}
/**
* @tentative-return-type
* @alias SimpleXMLElement::asXML
*/
public function saveXML(?string $filename = null): string|bool {}
/** @tentative-return-type */
public function getNamespaces(bool $recursive = false): array {}
/** @tentative-return-type */
public function getDocNamespaces(bool $recursive = false, bool $fromRoot = true): array|false {}
/** @tentative-return-type */
public function children(?string $namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElement {}
/** @tentative-return-type */
public function attributes(?string $namespaceOrPrefix = null, bool $isPrefix = false): ?SimpleXMLElement {}
public function __construct(string $data, int $options = 0, bool $dataIsURL = false, string $namespaceOrPrefix = "", bool $isPrefix = false) {}
/** @tentative-return-type */
public function addChild(string $qualifiedName, ?string $value = null, ?string $namespace = null): ?SimpleXMLElement {}
/** @tentative-return-type */
public function addAttribute(string $qualifiedName, string $value, ?string $namespace = null): void {}
/** @tentative-return-type */
public function getName(): string {}
public function __toString(): string {}
/** @tentative-return-type */
public function count(): int {}
/** @tentative-return-type */
public function rewind(): void {}
/** @tentative-return-type */
public function valid(): bool {}
/** @tentative-return-type */
public function current(): SimpleXMLElement {}
/** @tentative-return-type */
public function key(): string {}
/** @tentative-return-type */
public function next(): void {}
/** @tentative-return-type */
public function hasChildren(): bool {}
/** @tentative-return-type */
public function getChildren(): ?SimpleXMLElement {}
}
class SimpleXMLIterator extends SimpleXMLElement
{
}