1 | <?php |
||
19 | class BlockQuote 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 | 129 | public function canContain(AbstractBlock $block) |
|
32 | |||
33 | /** |
||
34 | * Returns true if block type can accept lines of text |
||
35 | * |
||
36 | * @return bool |
||
37 | */ |
||
38 | 135 | public function acceptsLines() |
|
42 | |||
43 | /** |
||
44 | * Whether this is a code block |
||
45 | * |
||
46 | * @return bool |
||
47 | */ |
||
48 | 135 | public function isCode() |
|
52 | |||
53 | 99 | public function matchesNextLine(Cursor $cursor) |
|
65 | |||
66 | /** |
||
67 | * @param Cursor $cursor |
||
68 | * @param int $currentLineNumber |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | 111 | public function shouldLastLineBeBlank(Cursor $cursor, $currentLineNumber) |
|
76 | } |
||
77 |