1 | <?php |
||
19 | class ListItem extends AbstractBlock |
||
20 | { |
||
21 | /** |
||
22 | * @var ListData |
||
23 | */ |
||
24 | protected $listData; |
||
25 | |||
26 | 240 | public function __construct(ListData $listData) |
|
32 | |||
33 | /** |
||
34 | * Returns true if this block can contain the given block as a child node |
||
35 | * |
||
36 | * @param AbstractBlock $block |
||
37 | * |
||
38 | * @return bool |
||
39 | */ |
||
40 | 231 | public function canContain(AbstractBlock $block) |
|
44 | |||
45 | /** |
||
46 | * Returns true if block type can accept lines of text |
||
47 | * |
||
48 | * @return bool |
||
49 | */ |
||
50 | 237 | public function acceptsLines() |
|
54 | |||
55 | /** |
||
56 | * Whether this is a code block |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | 237 | public function isCode() |
|
64 | |||
65 | 204 | public function matchesNextLine(Cursor $cursor) |
|
81 | |||
82 | /** |
||
83 | * @param Cursor $cursor |
||
84 | * @param int $currentLineNumber |
||
85 | * |
||
86 | * @return bool |
||
87 | */ |
||
88 | 228 | public function shouldLastLineBeBlank(Cursor $cursor, $currentLineNumber) |
|
92 | } |
||
93 |