← All changes
|
back/Libraries/Sabberworm/CSS/src/RuleSet/RuleContainer.php
+0
-36
10.10.2
→
11.1.1
View file →
| @@ -1,36 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -declare(strict_types=1); | |
| 4 | - | |
| 5 | -namespace AcyMailing\Libraries\Sabberworm\CSS\RuleSet; | |
| 6 | - | |
| 7 | -use AcyMailing\Libraries\Sabberworm\CSS\Rule\Rule; | |
| 8 | - | |
| 9 | -/** | |
| 10 | - * Represents a CSS item that contains `Rules`, defining the methods to manipulate them. | |
| 11 | - */ | |
| 12 | -interface RuleContainer | |
| 13 | -{ | |
| 14 | - public function addRule(Rule $ruleToAdd, ?Rule $sibling = null): void; | |
| 15 | - | |
| 16 | - public function removeRule(Rule $ruleToRemove): void; | |
| 17 | - | |
| 18 | - public function removeMatchingRules(string $searchPattern): void; | |
| 19 | - | |
| 20 | - public function removeAllRules(): void; | |
| 21 | - | |
| 22 | - /** | |
| 23 | - * @param array<Rule> $rules | |
| 24 | - */ | |
| 25 | - public function setRules(array $rules): void; | |
| 26 | - | |
| 27 | - /** | |
| 28 | - * @return array<int<0, max>, Rule> | |
| 29 | - */ | |
| 30 | - public function getRules(?string $searchPattern = null): array; | |
| 31 | - | |
| 32 | - /** | |
| 33 | - * @return array<string, Rule> | |
| 34 | - */ | |
| 35 | - public function getRulesAssoc(?string $searchPattern = null): array; | |
| 36 | -} | |