Debian Codegraph @

vendor/wikimedia/idle-dom/src/Stub/CSSStyleSheet.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 use Wikimedia\IDLeDOM\CSSRule;
10 use Wikimedia\IDLeDOM\CSSRuleList;
11
12 trait CSSStyleSheet {
13
14 // Underscore is used to avoid conflicts with DOM-reserved names
15 // phpcs:disable PSR2.Methods.MethodDeclaration.Underscore
16 // phpcs:disable MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName
17
18 /**
19 * @return Exception
20 */
21 abstract protected function _unimplemented(): Exception;
22
23 // phpcs:enable
24
25 /**
26 * @return CSSRule|null
27 */
28 public function getOwnerRule() {
29 throw self::_unimplemented();
30 }
31
32 /**
33 * @return CSSRuleList
34 */
35 public function getCssRules() {
36 throw self::_unimplemented();
37 }
38
39 /**
40 * @param string $rule
41 * @param int $index
42 * @return int
43 */
44 public function insertRule( string $rule, int $index = 0 ): int {
45 throw self::_unimplemented();
46 }
47
48 /**
49 * @param int $index
50 * @return void
51 */
52 public function deleteRule( int $index ): void {
53 throw self::_unimplemented();
54 }
55
56 /**
57 * @param string $text
58 * @return void
59 */
60 public function replaceSync( string $text ): void {
61 throw self::_unimplemented();
62 }
63
64 /**
65 * @return CSSRuleList
66 */
67 public function getRules() {
68 throw self::_unimplemented();
69 }
70
71 /**
72 * @param string $selector
73 * @param string $style
74 * @param ?int $index
75 * @return int
76 */
77 public function addRule( string $selector = 'undefined', string $style = 'undefined', ?int $index = null ): int {
78 throw self::_unimplemented();
79 }
80
81 /**
82 * @param int $index
83 * @return void
84 */
85 public function removeRule( int $index = 0 ): void {
86 throw self::_unimplemented();
87 }
88
89 }