Html   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 14
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A output() 0 3 1
A setContent() 0 4 1
1
<?php
2
3
namespace kalanis\kw_modules\Output;
4
5
6
/**
7
 * Class Html
8
 * @package kalanis\kw_modules
9
 * Output into Html data string
10
 * It's extra because it's necessary for wrapping with other modules - other outputs cannot do this
11
 */
12
class Html extends AOutput
13
{
14
    protected bool $canWrap = true;
15
    protected string $content = '';
16
17 1
    public function setContent(string $content = ''): self
18
    {
19 1
        $this->content = $content;
20 1
        return $this;
21
    }
22
23 1
    public function output(): string
24
    {
25 1
        return $this->content;
26
    }
27
}
28