ViewTemplateHtml   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace WebinoViewLib\Feature;
4
5
use WebinoConfigLib\Config;
6
use WebinoConfigLib\Feature\FeatureInterface;
7
8
/**
9
 * Class ViewTemplateHtml
10
 */
11
class ViewTemplateHtml extends Config implements
12
    FeatureInterface,
13
    ViewConfigInterface,
14
    ViewTemplatesConfigInterface
15
{
16
    /**
17
     * @param string $name
18
     * @param string $html
19
     */
20
    public function __construct($name, $html)
21
    {
22
        parent::__construct([[$this::VIEW => [$this::TEMPLATES => [$name => $html]]]]);
23
    }
24
}
25