Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class Header extends Element |
||
10 | { |
||
11 | private int $closeAfterCountElements = 0; |
||
12 | |||
13 | 6 | public function __construct(string $title) |
|
14 | { |
||
15 | 6 | parent::__construct(\uniqid('header'), $title); |
|
16 | 6 | $this->removeAttribute('name'); |
|
17 | 6 | $this->removeAttribute('id'); |
|
18 | } |
||
19 | |||
20 | 1 | public function closeAfter(int $countElements): void |
|
23 | } |
||
24 | |||
25 | 1 | public function getCloseAfterCountElements(): int |
|
26 | { |
||
27 | 1 | return $this->closeAfterCountElements; |
|
28 | } |
||
29 | |||
30 | |||
31 | 1 | public function baseHtml(): string |
|
34 | } |
||
35 | } |
||
36 |