| 1 | <?php |
||
| 19 | class ThematicBreak extends AbstractBlock |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Returns true if this block can contain the given block as a child node |
||
| 23 | * |
||
| 24 | * @param AbstractBlock $block |
||
| 25 | * |
||
| 26 | * @return bool |
||
| 27 | */ |
||
| 28 | 3 | public function canContain(AbstractBlock $block): bool |
|
| 29 | { |
||
| 30 | 3 | return false; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Whether this is a code block |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | 90 | public function isCode(): bool |
|
| 42 | |||
| 43 | 42 | public function matchesNextLine(Cursor $cursor): bool |
|
| 47 | } |
||
| 48 |