66
77abstract class ValueList extends Value
88{
9+ /**
10+ * @var array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>
11+ */
912 protected $ aComponents ;
1013
14+ /**
15+ * @var string
16+ */
1117 protected $ sSeparator ;
1218
1319 /**
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
1522 */
1623 public function __construct ($ aComponents = [], $ sSeparator = ', ' , $ iLineNo = 0 )
1724 {
@@ -23,26 +30,47 @@ public function __construct($aComponents = [], $sSeparator = ',', $iLineNo = 0)
2330 $ this ->sSeparator = $ sSeparator ;
2431 }
2532
33+ /**
34+ * @param RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string $mComponent
35+ *
36+ * @return void
37+ */
2638 public function addListComponent ($ mComponent )
2739 {
2840 $ this ->aComponents [] = $ mComponent ;
2941 }
3042
43+ /**
44+ * @return array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string>
45+ */
3146 public function getListComponents ()
3247 {
3348 return $ this ->aComponents ;
3449 }
3550
51+ /**
52+ * @param array<int, RuleValueList|CSSFunction|CSSString|LineName|Size|URL|string> $aComponents
53+ *
54+ * @return void
55+ */
3656 public function setListComponents (array $ aComponents )
3757 {
3858 $ this ->aComponents = $ aComponents ;
3959 }
4060
61+ /**
62+ * @return string
63+ */
4164 public function getListSeparator ()
4265 {
4366 return $ this ->sSeparator ;
4467 }
4568
69+ /**
70+ * @param string $sSeparator
71+ *
72+ * @return void
73+ */
4674 public function setListSeparator ($ sSeparator )
4775 {
4876 $ this ->sSeparator = $ sSeparator ;
0 commit comments