TableView   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A setHtml() 0 5 1
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