1 | <?php |
||
20 | class IndentedCode extends AbstractBlock |
||
21 | { |
||
22 | /** |
||
23 | * Returns true if this block can contain the given block as a child node |
||
24 | * |
||
25 | * @param AbstractBlock $block |
||
26 | * |
||
27 | * @return bool |
||
28 | */ |
||
29 | public function canContain(AbstractBlock $block) |
||
33 | |||
34 | /** |
||
35 | * Returns true if block type can accept lines of text |
||
36 | * |
||
37 | * @return bool |
||
38 | */ |
||
39 | 147 | public function acceptsLines() |
|
43 | |||
44 | /** |
||
45 | * Whether this is a code block |
||
46 | * |
||
47 | * @return bool |
||
48 | */ |
||
49 | 75 | public function isCode() |
|
53 | |||
54 | 87 | public function matchesNextLine(Cursor $cursor) |
|
66 | |||
67 | 147 | public function finalize(ContextInterface $context, $endLineNumber) |
|
87 | |||
88 | /** |
||
89 | * @param ContextInterface $context |
||
90 | * @param Cursor $cursor |
||
91 | */ |
||
92 | 144 | public function handleRemainingContents(ContextInterface $context, Cursor $cursor) |
|
96 | } |
||
97 |