Conditions | 4 |
Paths | 8 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
22 | public function __construct($data, Node $parent) |
||
23 | { |
||
24 | $this->parent = &$parent; |
||
25 | if (is_a($this->parent, 'dokuwiki\plugin\prosemirror\parser\ListItemNode')) { |
||
26 | $this->depth = $this->parent->getDepth() + 1; |
||
|
|||
27 | } |
||
28 | |||
29 | $this->prefix = $data['type'] == 'bullet_list' ? ' *' : ' -'; |
||
30 | |||
31 | foreach ($data['content'] as $listItemNode) { |
||
32 | $this->listItemNodes[] = new ListItemNode($listItemNode, $this); |
||
33 | } |
||
58 |