Skip to content

Commit 585034b

Browse files
authored
Merge pull request #278 from oliverklee/cleanup/types-calcfunction
Add type annotations for `CalcFunction`
2 parents f5870c3 + 81803bd commit 585034b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Value/CalcFunction.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,27 @@
33
namespace Sabberworm\CSS\Value;
44

55
use Sabberworm\CSS\Parsing\ParserState;
6+
use Sabberworm\CSS\Parsing\UnexpectedEOFException;
67
use Sabberworm\CSS\Parsing\UnexpectedTokenException;
78

89
class CalcFunction extends CSSFunction
910
{
11+
/**
12+
* @var int
13+
*/
1014
const T_OPERAND = 1;
15+
16+
/**
17+
* @var int
18+
*/
1119
const T_OPERATOR = 2;
1220

21+
/**
22+
* @return CalcFunction
23+
*
24+
* @throws UnexpectedTokenException
25+
* @throws UnexpectedEOFException
26+
*/
1327
public static function parse(ParserState $oParserState)
1428
{
1529
$aOperators = ['+', '-', '*', '/'];

0 commit comments

Comments
 (0)