| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 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 | public const DELIM_PERIOD = 'period'; |
||
| 28 | public const DELIM_PAREN = 'paren'; |
||
| 29 | |||
| 30 | protected bool $tight = false; // TODO Make lists tight by default in v3 |
||
| 31 | |||
| 32 | /** @psalm-readonly */ |
||
| 33 | protected ListData $listData; |
||
| 34 | |||
| 35 | 298 | public function __construct(ListData $listData) |
|
| 40 | } |
||
| 41 | |||
| 42 | 288 | public function getListData(): ListData |
|
| 43 | { |
||
| 44 | 288 | return $this->listData; |
|
| 45 | } |
||
| 46 | |||
| 47 | 260 | public function isTight(): bool |
|
| 48 | { |
||
| 49 | 260 | return $this->tight; |
|
| 50 | } |
||
| 51 | |||
| 52 | 218 | public function setTight(bool $tight): void |
|
| 55 | } |
||
| 56 | } |
||
| 57 |