Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function setLabel($label){ |
||
17 | $labelO=$label; |
||
18 | if(\is_string($label)){ |
||
19 | $labelO=new HtmlSemDoubleElement("","label"); |
||
20 | $labelO->setContent($label); |
||
21 | $labelO->setProperty("for", \str_replace("field-", "",$this->identifier)); |
||
22 | } |
||
23 | $this->content["label"]=$labelO; |
||
24 | } |
||
25 | |||
44 | } |