| 1 |
<?php |
| 2 |
|
| 3 |
// AUTOMATICALLY GENERATED. DO NOT EDIT. |
| 4 |
// Use `composer build` to regenerate. |
| 5 |
|
| 6 |
namespace Wikimedia\IDLeDOM; |
| 7 |
|
| 8 |
/** |
| 9 |
* CharacterData |
| 10 |
* |
| 11 |
* @see https://dom.spec.whatwg.org/#interface-characterdata |
| 12 |
* |
| 13 |
* @property int $nodeType |
| 14 |
* @property string $nodeName |
| 15 |
* @property string $baseURI |
| 16 |
* @property bool $isConnected |
| 17 |
* @property Document|null $ownerDocument |
| 18 |
* @property Node|null $parentNode |
| 19 |
* @property Element|null $parentElement |
| 20 |
* @property NodeList $childNodes |
| 21 |
* @property Node|null $firstChild |
| 22 |
* @property Node|null $lastChild |
| 23 |
* @property Node|null $previousSibling |
| 24 |
* @property Node|null $nextSibling |
| 25 |
* @property ?string $nodeValue |
| 26 |
* @property ?string $textContent |
| 27 |
* @property Element|null $previousElementSibling |
| 28 |
* @property Element|null $nextElementSibling |
| 29 |
* @property string $data |
| 30 |
* @property int $length |
| 31 |
* @phan-forbid-undeclared-magic-properties |
| 32 |
*/ |
| 33 |
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode { |
| 34 |
// Direct parent: Node |
| 35 |
|
| 36 |
/** |
| 37 |
* @return string |
| 38 |
*/ |
| 39 |
public function getData(): string; |
| 40 |
|
| 41 |
/** |
| 42 |
* @param ?string $val |
| 43 |
*/ |
| 44 |
public function setData( ?string $val ): void; |
| 45 |
|
| 46 |
/** |
| 47 |
* @return int |
| 48 |
*/ |
| 49 |
public function getLength(): int; |
| 50 |
|
| 51 |
/** |
| 52 |
* @param int $offset |
| 53 |
* @param int $count |
| 54 |
* @return string |
| 55 |
*/ |
| 56 |
public function substringData( int $offset, int $count ): string; |
| 57 |
|
| 58 |
/** |
| 59 |
* @param string $data |
| 60 |
* @return void |
| 61 |
*/ |
| 62 |
public function appendData( string $data ): void; |
| 63 |
|
| 64 |
/** |
| 65 |
* @param int $offset |
| 66 |
* @param string $data |
| 67 |
* @return void |
| 68 |
*/ |
| 69 |
public function insertData( int $offset, string $data ): void; |
| 70 |
|
| 71 |
/** |
| 72 |
* @param int $offset |
| 73 |
* @param int $count |
| 74 |
* @return void |
| 75 |
*/ |
| 76 |
public function deleteData( int $offset, int $count ): void; |
| 77 |
|
| 78 |
/** |
| 79 |
* @param int $offset |
| 80 |
* @param int $count |
| 81 |
* @param string $data |
| 82 |
* @return void |
| 83 |
*/ |
| 84 |
public function replaceData( int $offset, int $count, string $data ): void; |
| 85 |
|
| 86 |
} |