ViewTemplateHtml::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
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