From 6cdac03472e365d8798d1cc7d1a4f1817681505d Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Sun, 27 Jun 2021 10:43:36 +0200 Subject: [PATCH] Add type annotations for `AtRuleBlockList` --- src/CSSList/AtRuleBlockList.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CSSList/AtRuleBlockList.php b/src/CSSList/AtRuleBlockList.php index ce3a74e4..218adb9a 100644 --- a/src/CSSList/AtRuleBlockList.php +++ b/src/CSSList/AtRuleBlockList.php @@ -6,7 +6,7 @@ use Sabberworm\CSS\Property\AtRule; /** - * A BlockList constructed by an unknown at-rule. @media rules are rendered into AtRuleBlockList objects. + * A `BlockList` constructed by an unknown at-rule. `@media` rules are rendered into `AtRuleBlockList` objects. */ class AtRuleBlockList extends CSSBlockList implements AtRule { @@ -48,6 +48,9 @@ public function atRuleArgs() return $this->sArgs; } + /** + * @return string + */ public function __toString() { return $this->render(new OutputFormat()); @@ -70,6 +73,9 @@ public function render(OutputFormat $oOutputFormat) return $sResult; } + /** + * @return bool + */ public function isRootList() { return false;