Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | // AUTOMATICALLY GENERATED. DO NOT EDIT. |
4 | // Use `composer build` to regenerate. |
5 | |
6 | namespace Wikimedia\IDLeDOM; |
7 | |
8 | /** |
9 | * Range |
10 | * |
11 | * @see https://dom.spec.whatwg.org/#interface-range |
12 | * |
13 | * @property Node $startContainer |
14 | * @property int $startOffset |
15 | * @property Node $endContainer |
16 | * @property int $endOffset |
17 | * @property bool $collapsed |
18 | * @property Node $commonAncestorContainer |
19 | * @phan-forbid-undeclared-magic-properties |
20 | */ |
21 | interface Range extends AbstractRange { |
22 | // Direct parent: AbstractRange |
23 | |
24 | /** |
25 | * @return Node |
26 | */ |
27 | public function getCommonAncestorContainer(); |
28 | |
29 | /** |
30 | * @param Node $node |
31 | * @param int $offset |
32 | * @return void |
33 | */ |
34 | public function setStart( /* Node */ $node, int $offset ): void; |
35 | |
36 | /** |
37 | * @param Node $node |
38 | * @param int $offset |
39 | * @return void |
40 | */ |
41 | public function setEnd( /* Node */ $node, int $offset ): void; |
42 | |
43 | /** |
44 | * @param Node $node |
45 | * @return void |
46 | */ |
47 | public function setStartBefore( /* Node */ $node ): void; |
48 | |
49 | /** |
50 | * @param Node $node |
51 | * @return void |
52 | */ |
53 | public function setStartAfter( /* Node */ $node ): void; |
54 | |
55 | /** |
56 | * @param Node $node |
57 | * @return void |
58 | */ |
59 | public function setEndBefore( /* Node */ $node ): void; |
60 | |
61 | /** |
62 | * @param Node $node |
63 | * @return void |
64 | */ |
65 | public function setEndAfter( /* Node */ $node ): void; |
66 | |
67 | /** |
68 | * @param bool $toStart |
69 | * @return void |
70 | */ |
71 | public function collapse( bool $toStart = false ): void; |
72 | |
73 | /** |
74 | * @param Node $node |
75 | * @return void |
76 | */ |
77 | public function selectNode( /* Node */ $node ): void; |
78 | |
79 | /** |
80 | * @param Node $node |
81 | * @return void |
82 | */ |
83 | public function selectNodeContents( /* Node */ $node ): void; |
84 | |
85 | /** @var int */ |
86 | public const START_TO_START = 0; |
87 | |
88 | /** @var int */ |
89 | public const START_TO_END = 1; |
90 | |
91 | /** @var int */ |
92 | public const END_TO_END = 2; |
93 | |
94 | /** @var int */ |
95 | public const END_TO_START = 3; |
96 | |
97 | /** |
98 | * @param int $how |
99 | * @param \Wikimedia\IDLeDOM\Range $sourceRange |
100 | * @return int |
101 | */ |
102 | public function compareBoundaryPoints( int $how, /* \Wikimedia\IDLeDOM\Range */ $sourceRange ): int; |
103 | |
104 | /** |
105 | * @return void |
106 | */ |
107 | public function deleteContents(): void; |
108 | |
109 | /** |
110 | * @return DocumentFragment |
111 | */ |
112 | public function extractContents(); |
113 | |
114 | /** |
115 | * @return DocumentFragment |
116 | */ |
117 | public function cloneContents(); |
118 | |
119 | /** |
120 | * @param Node $node |
121 | * @return void |
122 | */ |
123 | public function insertNode( /* Node */ $node ): void; |
124 | |
125 | /** |
126 | * @param Node $newParent |
127 | * @return void |
128 | */ |
129 | public function surroundContents( /* Node */ $newParent ): void; |
130 | |
131 | /** |
132 | * @return \Wikimedia\IDLeDOM\Range |
133 | */ |
134 | public function cloneRange(); |
135 | |
136 | /** |
137 | * @return void |
138 | */ |
139 | public function detach(): void; |
140 | |
141 | /** |
142 | * @param Node $node |
143 | * @param int $offset |
144 | * @return bool |
145 | */ |
146 | public function isPointInRange( /* Node */ $node, int $offset ): bool; |
147 | |
148 | /** |
149 | * @param Node $node |
150 | * @param int $offset |
151 | * @return int |
152 | */ |
153 | public function comparePoint( /* Node */ $node, int $offset ): int; |
154 | |
155 | /** |
156 | * @param Node $node |
157 | * @return bool |
158 | */ |
159 | public function intersectsNode( /* Node */ $node ): bool; |
160 | |
161 | /** |
162 | * @return string |
163 | */ |
164 | public function toString(): string; |
165 | |
166 | /** |
167 | * @param string $fragment |
168 | * @return DocumentFragment |
169 | */ |
170 | public function createContextualFragment( string $fragment ); |
171 | |
172 | } |