File tree Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Expand file tree Collapse file tree 1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change 6
6
use Sabberworm \CSS \OutputFormat ;
7
7
8
8
/**
9
- * CSSNamespace represents an @namespace rule.
9
+ * ` CSSNamespace` represents an ` @namespace` rule.
10
10
*/
11
11
class CSSNamespace implements AtRule
12
12
{
13
+ /**
14
+ * @var string
15
+ */
13
16
private $ mUrl ;
14
17
18
+ /**
19
+ * @var string
20
+ */
15
21
private $ sPrefix ;
16
22
23
+ /**
24
+ * @var int
25
+ */
17
26
private $ iLineNo ;
18
27
19
28
/**
20
29
* @var array<array-key, Comment>
21
30
*/
22
31
protected $ aComments ;
23
32
33
+ /**
34
+ * @param string $mUrl
35
+ * @param string|null $sPrefix
36
+ * @param int $iLineNo
37
+ */
24
38
public function __construct ($ mUrl , $ sPrefix = null , $ iLineNo = 0 )
25
39
{
26
40
$ this ->mUrl = $ mUrl ;
@@ -54,21 +68,37 @@ public function render(OutputFormat $oOutputFormat)
54
68
. $ this ->mUrl ->render ($ oOutputFormat ) . '; ' ;
55
69
}
56
70
71
+ /**
72
+ * @return string
73
+ */
57
74
public function getUrl ()
58
75
{
59
76
return $ this ->mUrl ;
60
77
}
61
78
79
+ /**
80
+ * @return string|null
81
+ */
62
82
public function getPrefix ()
63
83
{
64
84
return $ this ->sPrefix ;
65
85
}
66
86
87
+ /**
88
+ * @param string $mUrl
89
+ *
90
+ * @return void
91
+ */
67
92
public function setUrl ($ mUrl )
68
93
{
69
94
$ this ->mUrl = $ mUrl ;
70
95
}
71
96
97
+ /**
98
+ * @param string $sPrefix
99
+ *
100
+ * @return void
101
+ */
72
102
public function setPrefix ($ sPrefix )
73
103
{
74
104
$ this ->sPrefix = $ sPrefix ;
You can’t perform that action at this time.
0 commit comments