File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
use Sabberworm \CSS \OutputFormat ;
6
6
use Sabberworm \CSS \Parsing \ParserState ;
7
+ use Sabberworm \CSS \Parsing \SourceException ;
8
+ use Sabberworm \CSS \Parsing \UnexpectedEOFException ;
9
+ use Sabberworm \CSS \Parsing \UnexpectedTokenException ;
7
10
8
11
class URL extends PrimitiveValue
9
12
{
13
+ /**
14
+ * @var CSSString
15
+ */
10
16
private $ oURL ;
11
17
18
+ /**
19
+ * @param int $iLineNo
20
+ */
12
21
public function __construct (CSSString $ oURL , $ iLineNo = 0 )
13
22
{
14
23
parent ::__construct ($ iLineNo );
15
24
$ this ->oURL = $ oURL ;
16
25
}
17
26
27
+ /**
28
+ * @return URL
29
+ *
30
+ * @throws SourceException
31
+ * @throws UnexpectedEOFException
32
+ * @throws UnexpectedTokenException
33
+ */
18
34
public static function parse (ParserState $ oParserState )
19
35
{
20
36
$ bUseUrl = $ oParserState ->comes ('url ' , true );
@@ -32,11 +48,17 @@ public static function parse(ParserState $oParserState)
32
48
return $ oResult ;
33
49
}
34
50
51
+ /**
52
+ * @return void
53
+ */
35
54
public function setURL (CSSString $ oURL )
36
55
{
37
56
$ this ->oURL = $ oURL ;
38
57
}
39
58
59
+ /**
60
+ * @return CSSString
61
+ */
40
62
public function getURL ()
41
63
{
42
64
return $ this ->oURL ;
You can’t perform that action at this time.
0 commit comments