Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class HtmlElement extends AbstractHtmlElement |
||
6 | { |
||
7 | /** |
||
8 | * |
||
9 | */ |
||
10 | protected $tag; |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | */ |
||
15 | protected $innerHtml = ''; |
||
16 | |||
17 | /** |
||
18 | * |
||
19 | */ |
||
20 | public function __construct(string $tag, ?string $innerHtml = null) |
||
21 | { |
||
22 | $this->tag = $tag; |
||
23 | $innerHtml && $this->innerHtml = $innerHtml; |
||
24 | |||
25 | parent::__construct(); |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * Get the value of tag |
||
30 | * |
||
31 | * @return mixed |
||
32 | */ |
||
33 | public function getTag() |
||
34 | { |
||
35 | return $this->tag; |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the value of innerHtml |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function getInnerHtml() |
||
44 | { |
||
45 | return $this->innerHtml; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | */ |
||
51 | protected function renderHtmlMarkup(): string |
||
54 | } |
||
55 | } |
||
56 |