1717use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
1818use Sabberworm \CSS \Position \Position ;
1919use Sabberworm \CSS \Position \Positionable ;
20+ use Sabberworm \CSS \Property \Declaration ;
2021use Sabberworm \CSS \Property \KeyframeSelector ;
2122use Sabberworm \CSS \Property \Selector ;
22- use Sabberworm \CSS \Rule \Rule ;
2323use Sabberworm \CSS \Settings ;
2424
2525/**
@@ -182,13 +182,13 @@ public function getRuleSet(): RuleSet
182182 /**
183183 * @see RuleSet::addRule()
184184 */
185- public function addRule (Rule $ ruleToAdd , ?Rule $ sibling = null ): void
185+ public function addRule (Declaration $ declarationToAdd , ?Declaration $ sibling = null ): void
186186 {
187- $ this ->ruleSet ->addRule ($ ruleToAdd , $ sibling );
187+ $ this ->ruleSet ->addRule ($ declarationToAdd , $ sibling );
188188 }
189189
190190 /**
191- * @return array<int<0, max>, Rule >
191+ * @return array<int<0, max>, Declaration >
192192 *
193193 * @see RuleSet::getRules()
194194 */
@@ -198,17 +198,17 @@ public function getRules(?string $searchPattern = null): array
198198 }
199199
200200 /**
201- * @param array<Rule > $rules
201+ * @param array<Declaration > $declarations
202202 *
203203 * @see RuleSet::setRules()
204204 */
205- public function setRules (array $ rules ): void
205+ public function setRules (array $ declarations ): void
206206 {
207- $ this ->ruleSet ->setRules ($ rules );
207+ $ this ->ruleSet ->setRules ($ declarations );
208208 }
209209
210210 /**
211- * @return array<string, Rule >
211+ * @return array<string, Declaration >
212212 *
213213 * @see RuleSet::getRulesAssoc()
214214 */
@@ -220,9 +220,9 @@ public function getRulesAssoc(?string $searchPattern = null): array
220220 /**
221221 * @see RuleSet::removeRule()
222222 */
223- public function removeRule (Rule $ ruleToRemove ): void
223+ public function removeRule (Declaration $ declarationToRemove ): void
224224 {
225- $ this ->ruleSet ->removeRule ($ ruleToRemove );
225+ $ this ->ruleSet ->removeRule ($ declarationToRemove );
226226 }
227227
228228 /**
0 commit comments