Skip to content

Commit 1691f66

Browse files
authored
Merge pull request #282 from oliverklee/cleanup/types-atruleblocklist
Add type annotations for `AtRuleBlockList`
2 parents e55fbb5 + 6cdac03 commit 1691f66

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/CSSList/AtRuleBlockList.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Sabberworm\CSS\Property\AtRule;
77

88
/**
9-
* A BlockList constructed by an unknown at-rule. @media rules are rendered into AtRuleBlockList objects.
9+
* A `BlockList` constructed by an unknown at-rule. `@media` rules are rendered into `AtRuleBlockList` objects.
1010
*/
1111
class AtRuleBlockList extends CSSBlockList implements AtRule
1212
{
@@ -48,6 +48,9 @@ public function atRuleArgs()
4848
return $this->sArgs;
4949
}
5050

51+
/**
52+
* @return string
53+
*/
5154
public function __toString()
5255
{
5356
return $this->render(new OutputFormat());
@@ -70,6 +73,9 @@ public function render(OutputFormat $oOutputFormat)
7073
return $sResult;
7174
}
7275

76+
/**
77+
* @return bool
78+
*/
7379
public function isRootList()
7480
{
7581
return false;

0 commit comments

Comments
 (0)