Total Complexity | 4 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | final class TableSection extends AbstractBlock |
||
21 | { |
||
22 | public const TYPE_HEAD = 'thead'; |
||
23 | public const TYPE_BODY = 'tbody'; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | * |
||
28 | * @psalm-readonly |
||
29 | */ |
||
30 | private $type; |
||
31 | |||
32 | 96 | public function __construct(string $type = self::TYPE_BODY) |
|
33 | { |
||
34 | 96 | parent::__construct(); |
|
35 | |||
36 | 96 | $this->type = $type; |
|
37 | 96 | } |
|
38 | |||
39 | 81 | public function getType(): string |
|
42 | } |
||
43 | |||
44 | 3 | public function isHead(): bool |
|
47 | } |
||
48 | |||
49 | 3 | public function isBody(): bool |
|
54 |