6
6
7
7
abstract class ValueList extends Value
8
8
{
9
+ /**
10
+ * @var array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>
11
+ */
9
12
protected $ aComponents ;
10
13
14
+ /**
15
+ * @var string
16
+ */
11
17
protected $ sSeparator ;
12
18
13
19
/**
14
- * @param array|mixed $aComponents
20
+ * @param array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>
21
+ * |RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $aComponents
15
22
*/
16
23
public function __construct ($ aComponents = [], $ sSeparator = ', ' , $ iLineNo = 0 )
17
24
{
@@ -23,26 +30,47 @@ public function __construct($aComponents = [], $sSeparator = ',', $iLineNo = 0)
23
30
$ this ->sSeparator = $ sSeparator ;
24
31
}
25
32
33
+ /**
34
+ * @param RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $mComponent
35
+ *
36
+ * @return void
37
+ */
26
38
public function addListComponent ($ mComponent )
27
39
{
28
40
$ this ->aComponents [] = $ mComponent ;
29
41
}
30
42
43
+ /**
44
+ * @return array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>
45
+ */
31
46
public function getListComponents ()
32
47
{
33
48
return $ this ->aComponents ;
34
49
}
35
50
51
+ /**
52
+ * @param array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string> $aComponents
53
+ *
54
+ * @return void
55
+ */
36
56
public function setListComponents (array $ aComponents )
37
57
{
38
58
$ this ->aComponents = $ aComponents ;
39
59
}
40
60
61
+ /**
62
+ * @return string
63
+ */
41
64
public function getListSeparator ()
42
65
{
43
66
return $ this ->sSeparator ;
44
67
}
45
68
69
+ /**
70
+ * @param string $sSeparator
71
+ *
72
+ * @return void
73
+ */
46
74
public function setListSeparator ($ sSeparator )
47
75
{
48
76
$ this ->sSeparator = $ sSeparator ;
0 commit comments