Html   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getHtml() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * File: Html.php
6
 *
7
 * @author      Maciej Sławik <[email protected]>
8
 * Github:      https://github.com/maciejslawik
9
 */
10
11
namespace MSlwk\ReactPhpPlayground\Model\Data;
12
13
use MSlwk\ReactPhpPlayground\Api\Data\HtmlInterface;
14
15
/**
16
 * Class Html
17
 * @package MSlwk\ReactPhpPlayground\Model\Data
18
 */
19
class Html implements HtmlInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    private $html;
25
26
    /**
27
     * Html constructor.
28
     * @param string $html
29
     */
30
    public function __construct(string $html)
31
    {
32
        $this->html = $html;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getHtml(): string
39
    {
40
        return $this->html;
41
    }
42
}
43