Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | protected function createItem($value){ |
||
18 | $count=$this->count(); |
||
19 | if(\is_array($value)){ |
||
20 | $item=new HtmlListItem("item-".$this->identifier."-".$count, $value[0]); |
||
21 | $item->addIcon($value[1]); |
||
22 | }else |
||
23 | $item= new HtmlListItem("item-".$this->identifier."-".$count, $value); |
||
24 | return $item; |
||
25 | } |
||
26 | |||
27 | } |