File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 5
5
use Sabberworm \CSS \OutputFormat ;
6
6
use Sabberworm \CSS \Parsing \ParserState ;
7
7
use Sabberworm \CSS \Parsing \SourceException ;
8
+ use Sabberworm \CSS \Parsing \UnexpectedEOFException ;
9
+ use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
8
10
9
11
class CSSString extends PrimitiveValue
10
12
{
13
+ /**
14
+ * @var string
15
+ */
11
16
private $ sString ;
12
17
18
+ /**
19
+ * @param string $sString
20
+ * @param int $iLineNo
21
+ */
13
22
public function __construct ($ sString , $ iLineNo = 0 )
14
23
{
15
24
$ this ->sString = $ sString ;
16
25
parent ::__construct ($ iLineNo );
17
26
}
18
27
28
+ /**
29
+ * @return CSSString
30
+ *
31
+ * @throws SourceException
32
+ * @throws UnexpectedEOFException
33
+ * @throws UnexpectedTokenException
34
+ */
19
35
public static function parse (ParserState $ oParserState )
20
36
{
21
37
$ sBegin = $ oParserState ->peek ();
@@ -51,11 +67,19 @@ public static function parse(ParserState $oParserState)
51
67
return new CSSString ($ sResult , $ oParserState ->currentLine ());
52
68
}
53
69
70
+ /**
71
+ * @param string $sString
72
+ *
73
+ * @return void
74
+ */
54
75
public function setString ($ sString )
55
76
{
56
77
$ this ->sString = $ sString ;
57
78
}
58
79
80
+ /**
81
+ * @return string
82
+ */
59
83
public function getString ()
60
84
{
61
85
return $ this ->sString ;
You can’t perform that action at this time.
0 commit comments