| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM; |
| 7 |
|
| 8 |
/** |
| 9 |
* TreeWalker |
| 10 |
* |
| 11 |
* @see https://dom.spec.whatwg.org/#interface-treewalker |
| 12 |
* |
| 13 |
* @property Node $root |
| 14 |
* @property int $whatToShow |
| 15 |
* @property NodeFilter|callable|null $filter |
| 16 |
* @property Node $currentNode |
| 17 |
* @phan-forbid-undeclared-magic-properties |
| 18 |
*/ |
| 19 |
interface TreeWalker { |
| 20 |
/** |
| 21 |
* @return Node |
| 22 |
*/ |
| 23 |
public function getRoot(); |
| 24 |
|
| 25 |
/** |
| 26 |
* @return int |
| 27 |
*/ |
| 28 |
public function getWhatToShow(): int; |
| 29 |
|
| 30 |
/** |
| 31 |
* @return NodeFilter|callable|null |
| 32 |
*/ |
| 33 |
public function getFilter(); |
| 34 |
|
| 35 |
/** |
| 36 |
* @return Node |
| 37 |
*/ |
| 38 |
public function getCurrentNode(); |
| 39 |
|
| 40 |
/** |
| 41 |
* @param Node $val |
| 42 |
*/ |
| 43 |
public function setCurrentNode( /* Node */ $val ): void; |
| 44 |
|
| 45 |
/** |
| 46 |
* @return Node|null |
| 47 |
*/ |
| 48 |
public function parentNode(); |
| 49 |
|
| 50 |
/** |
| 51 |
* @return Node|null |
| 52 |
*/ |
| 53 |
public function firstChild(); |
| 54 |
|
| 55 |
/** |
| 56 |
* @return Node|null |
| 57 |
*/ |
| 58 |
public function lastChild(); |
| 59 |
|
| 60 |
/** |
| 61 |
* @return Node|null |
| 62 |
*/ |
| 63 |
public function previousSibling(); |
| 64 |
|
| 65 |
/** |
| 66 |
* @return Node|null |
| 67 |
*/ |
| 68 |
public function nextSibling(); |
| 69 |
|
| 70 |
/** |
| 71 |
* @return Node|null |
| 72 |
*/ |
| 73 |
public function previousNode(); |
| 74 |
|
| 75 |
/** |
| 76 |
* @return Node|null |
| 77 |
*/ |
| 78 |
public function nextNode(); |
| 79 |
|
| 80 |
} |