| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class HtmlElement extends AbstractHtmlElement implements HtmlInterface |
||
| 8 | { |
||
| 9 | protected string $tag; |
||
| 10 | |||
| 11 | protected string $innerHtml = ''; |
||
| 12 | |||
| 13 | public function __construct(string $tag, ?string $innerHtml = null) |
||
| 14 | { |
||
| 15 | $this->tag = $tag; |
||
| 16 | $this->innerHtml = $innerHtml ?? $this->innerHtml; |
||
| 17 | |||
| 18 | parent::__construct(); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getTag(): string |
||
| 22 | { |
||
| 23 | return $this->tag; |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getInnerHtml(): string |
||
| 27 | { |
||
| 28 | return $this->innerHtml; |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function renderHtmlMarkup(): string |
||
| 34 | } |
||
| 35 | } |
||
| 36 |