TableView::setHtml()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace WebinoViewLib\Feature;
4
5
use WebinoDomLib\Dom\Config\AbstractSpecConfig;
6
7
/**
8
 * Class TableView
9
 */
10
class TableView extends AbstractSpecConfig
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15
    public function __construct($name)
16
    {
17
        parent::__construct($name);
18
19
        $this->setOptions([
20
            'component' => self::class,
21
        ]);
22
    }
23
24
    /**
25
     * @param string $html Valid XHTML code.
26
     * @return $this
27
     */
28
    public function setHtml($html)
29
    {
30
        $this->mergeArray(['html' => $html]);
31
        return $this;
32
    }
33
}
34