Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/DOMTokenList.php

raw
1 <?php
2
3 // AUTOMATICALLY GENERATED. DO NOT EDIT.
4 // Use `composer build` to regenerate.
5
6 namespace Wikimedia\IDLeDOM\Stub;
7
8 use Exception;
9
10 trait DOMTokenList {
11
12 // Underscore is used to avoid conflicts with DOM-reserved names
13 // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
14 // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
15
16 /**
17 * @return Exception
18 */
19 abstract protected function _unimplemented(): Exception;
20
21 // phpcs:enable
22
23 /**
24 * @return int
25 */
26 public function getLength(): int {
27 throw self::_unimplemented();
28 }
29
30 /**
31 * @param int $index
32 * @return ?string
33 */
34 public function item( int $index ): ?string {
35 throw self::_unimplemented();
36 }
37
38 /**
39 * @param string $token
40 * @return bool
41 */
42 public function contains( string $token ): bool {
43 throw self::_unimplemented();
44 }
45
46 /**
47 * @param string ...$tokens
48 * @return void
49 */
50 public function add( string ...$tokens ): void {
51 throw self::_unimplemented();
52 }
53
54 /**
55 * @param string ...$tokens
56 * @return void
57 */
58 public function remove( string ...$tokens ): void {
59 throw self::_unimplemented();
60 }
61
62 /**
63 * @param string $token
64 * @param ?bool $force
65 * @return bool
66 */
67 public function toggle( string $token, ?bool $force = null ): bool {
68 throw self::_unimplemented();
69 }
70
71 /**
72 * @param string $token
73 * @param string $newToken
74 * @return bool
75 */
76 public function replace( string $token, string $newToken ): bool {
77 throw self::_unimplemented();
78 }
79
80 /**
81 * @param string $token
82 * @return bool
83 */
84 public function supports( string $token ): bool {
85 throw self::_unimplemented();
86 }
87
88 /**
89 * @return string
90 */
91 public function getValue(): string {
92 throw self::_unimplemented();
93 }
94
95 /**
96 * @param string $val
97 */
98 public function setValue( string $val ): void {
99 throw self::_unimplemented();
100 }
101
102 }