Debian Codegraph @

vendor/wikimedia/idle-dom/src/ParentNode.php

raw
1 <?php
2
3 // AUTOMATICALLY GENERATED. DO NOT EDIT.
4 // Use `composer build` to regenerate.
5
6 namespace Wikimedia\IDLeDOM;
7
8 /**
9 * ParentNode
10 *
11 * @see https://dom.spec.whatwg.org/#interface-parentnode
12 *
13 * @property HTMLCollection $children
14 * @property Element|null $firstElementChild
15 * @property Element|null $lastElementChild
16 * @property int $childElementCount
17 * @phan-forbid-undeclared-magic-properties
18 */
19 interface ParentNode {
20 /**
21 * @return HTMLCollection
22 */
23 public function getChildren();
24
25 /**
26 * @return Element|null
27 */
28 public function getFirstElementChild();
29
30 /**
31 * @return Element|null
32 */
33 public function getLastElementChild();
34
35 /**
36 * @return int
37 */
38 public function getChildElementCount(): int;
39
40 /**
41 * @param Node|string ...$nodes
42 * @return void
43 */
44 public function prepend( /* mixed */ ...$nodes ): void;
45
46 /**
47 * @param Node|string ...$nodes
48 * @return void
49 */
50 public function append( /* mixed */ ...$nodes ): void;
51
52 /**
53 * @param Node|string ...$nodes
54 * @return void
55 */
56 public function replaceChildren( /* mixed */ ...$nodes ): void;
57
58 /**
59 * @param string $selectors
60 * @return Element|null
61 */
62 public function querySelector( string $selectors );
63
64 /**
65 * @param string $selectors
66 * @return NodeList
67 */
68 public function querySelectorAll( string $selectors );
69
70 }