Html::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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