Skip to content

Commit 2376295

Browse files
committed
Add type annotations for LineName
1 parent 7de0f36 commit 2376295

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Value/LineName.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,27 @@
44

55
use Sabberworm\CSS\OutputFormat;
66
use Sabberworm\CSS\Parsing\ParserState;
7+
use Sabberworm\CSS\Parsing\UnexpectedEOFException;
78
use Sabberworm\CSS\Parsing\UnexpectedTokenException;
89

910
class LineName extends ValueList
1011
{
12+
/**
13+
* phpcs:ignore Generic.Files.LineLength
14+
* @param array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>|RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $aComponents
15+
* @param int $iLineNo
16+
*/
1117
public function __construct(array $aComponents = [], $iLineNo = 0)
1218
{
1319
parent::__construct($aComponents, ' ', $iLineNo);
1420
}
1521

22+
/**
23+
* @return LineName
24+
*
25+
* @throws UnexpectedTokenException
26+
* @throws UnexpectedEOFException
27+
*/
1628
public static function parse(ParserState $oParserState)
1729
{
1830
$oParserState->consume('[');

0 commit comments

Comments
 (0)