Passed
Pull Request — master (#66)
by Michael
02:50
created

HardBreakNode   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 2 1
A toSyntax() 0 3 1
1
<?php
2
/**
3
 * Created by IntelliJ IDEA.
4
 * User: michael
5
 * Date: 1/25/18
6
 * Time: 11:15 AM
7
 */
8
9
namespace dokuwiki\plugin\prosemirror\parser;
10
11
class HardBreakNode extends Node
12
{
13
    /**
14
     * HardBreakNode constructor.
15
     *
16
     * This is just a hard break, it doesn't have attributes or context
17
     *
18
     * @param      $data
19
     * @param Node $parent
20
     */
21
    public function __construct($data, Node $parent)
22
    {
23
    }
24
25
    public function toSyntax()
26
    {
27
        return '\\\\ ';
28
    }
29
}
30