1 | <?php |
||
18 | class UnorderedList |
||
19 | { |
||
20 | protected $iconCssPrefix; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $options = []; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $items = []; |
||
31 | |||
32 | /** |
||
33 | * @param string $iconCssPrefix |
||
34 | * @param array $options |
||
35 | */ |
||
36 | 2 | public function __construct($iconCssPrefix, $options = []) |
|
37 | { |
||
38 | 2 | $this->iconCssPrefix = $iconCssPrefix; |
|
39 | |||
40 | 2 | Html::addCssClass($options, FontAwesome::$basePrefix . '-ul'); |
|
41 | |||
42 | 2 | $options['item'] = function ($item, $index) { |
|
43 | 2 | return call_user_func($item, $index); |
|
44 | }; |
||
45 | |||
46 | 2 | $this->options = $options; |
|
47 | 2 | } |
|
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 2 | public function __toString() |
|
56 | |||
57 | /** |
||
58 | * @param string $label |
||
59 | * @param array $options |
||
60 | * @return \rmrevin\yii\fontawesome\component\UnorderedList |
||
61 | */ |
||
62 | public function item($label, $options = []) |
||
79 | } |
||
80 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.