Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class ListBlock extends AbstractBlock implements TightBlockInterface |
||
23 | { |
||
24 | public const TYPE_BULLET = 'bullet'; |
||
25 | public const TYPE_ORDERED = 'ordered'; |
||
26 | |||
27 | /** @var bool */ |
||
28 | protected $tight = false; |
||
29 | |||
30 | /** |
||
31 | * @var ListData |
||
32 | * |
||
33 | * @psalm-readonly |
||
34 | */ |
||
35 | protected $listData; |
||
36 | |||
37 | 360 | public function __construct(ListData $listData) |
|
42 | 360 | } |
|
43 | |||
44 | 354 | public function getListData(): ListData |
|
45 | { |
||
46 | 354 | return $this->listData; |
|
47 | } |
||
48 | |||
49 | 264 | public function isTight(): bool |
|
50 | { |
||
51 | 264 | return $this->tight; |
|
52 | } |
||
53 | |||
54 | 297 | public function setTight(bool $tight): void |
|
57 | 297 | } |
|
58 | } |
||
59 |