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 55use Sabberworm \CSS \OutputFormat ;
66use Sabberworm \CSS \Parsing \ParserState ;
77use Sabberworm \CSS \Parsing \SourceException ;
8+ use Sabberworm \CSS \Parsing \UnexpectedEOFException ;
9+ use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
810
911class CSSString extends PrimitiveValue
1012{
13+ /**
14+ * @var string
15+ */
1116 private $ sString ;
1217
18+ /**
19+ * @param string $sString
20+ * @param int $iLineNo
21+ */
1322 public function __construct ($ sString , $ iLineNo = 0 )
1423 {
1524 $ this ->sString = $ sString ;
1625 parent ::__construct ($ iLineNo );
1726 }
1827
28+ /**
29+ * @return CSSString
30+ *
31+ * @throws SourceException
32+ * @throws UnexpectedEOFException
33+ * @throws UnexpectedTokenException
34+ */
1935 public static function parse (ParserState $ oParserState )
2036 {
2137 $ sBegin = $ oParserState ->peek ();
@@ -51,11 +67,19 @@ public static function parse(ParserState $oParserState)
5167 return new CSSString ($ sResult , $ oParserState ->currentLine ());
5268 }
5369
70+ /**
71+ * @param string $sString
72+ *
73+ * @return void
74+ */
5475 public function setString ($ sString )
5576 {
5677 $ this ->sString = $ sString ;
5778 }
5879
80+ /**
81+ * @return string
82+ */
5983 public function getString ()
6084 {
6185 return $ this ->sString ;
You can’t perform that action at this time.
0 commit comments