Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
34 | 3 | public function baseHtml(): string |
|
35 | { |
||
36 | 3 | $return = sprintf("<div id='%s'>", $this->getName()); |
|
37 | 3 | foreach ($this->getElements() as $data) { |
|
38 | // $data->setAttr(AttributeFactory::create('placeholder', $data->getLabel())); |
||
39 | // $data->setLabel(null); |
||
40 | 3 | $return .= HtmlRenderer::createTypeRender($data)->render(); |
|
41 | } |
||
42 | 3 | $return .= '</div>'; |
|
43 | 3 | return $return; |
|
44 | } |
||
50 |