update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
@@ -4,33 +4,11 @@
|
||||
|
||||
namespace Sabberworm\CSS\RuleSet;
|
||||
|
||||
use Sabberworm\CSS\Rule\Rule;
|
||||
|
||||
/**
|
||||
* Represents a CSS item that contains `Rules`, defining the methods to manipulate them.
|
||||
*/
|
||||
interface RuleContainer
|
||||
{
|
||||
public function addRule(Rule $ruleToAdd, ?Rule $sibling = null): void;
|
||||
|
||||
public function removeRule(Rule $ruleToRemove): void;
|
||||
|
||||
public function removeMatchingRules(string $searchPattern): void;
|
||||
|
||||
public function removeAllRules(): void;
|
||||
use function Safe\class_alias;
|
||||
|
||||
if (!\class_exists(RuleContainer::class, false) && !\interface_exists(RuleContainer::class, false)) {
|
||||
/**
|
||||
* @param array<Rule> $rules
|
||||
* @deprecated in v9.2, will be removed in v10.0. Use `DeclarationList` instead, which is a direct replacement.
|
||||
*/
|
||||
public function setRules(array $rules): void;
|
||||
|
||||
/**
|
||||
* @return array<int<0, max>, Rule>
|
||||
*/
|
||||
public function getRules(?string $searchPattern = null): array;
|
||||
|
||||
/**
|
||||
* @return array<string, Rule>
|
||||
*/
|
||||
public function getRulesAssoc(?string $searchPattern = null): array;
|
||||
class_alias(DeclarationList::class, RuleContainer::class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user