Completed
Push — master ( 6c85d2...15e8d5 )
by Colin
04:57
created

ThematicBreak::canContain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
/*
4
 * This file is part of the league/commonmark package.
5
 *
6
 * (c) Colin O'Dell <[email protected]>
7
 *
8
 * Original code based on the CommonMark JS reference parser (http://bitly.com/commonmark-js)
9
 *  - (c) John MacFarlane
10
 *
11
 * For the full copyright and license information, please view the LICENSE
12
 * file that was distributed with this source code.
13
 */
14
15
namespace League\CommonMark\Block\Element;
16
17
use League\CommonMark\Cursor;
18
19
class ThematicBreak 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
    public function canContain(AbstractBlock $block)
29
    {
30
        return false;
31
    }
32
33
    /**
34
     * Returns true if block type can accept lines of text
35
     *
36
     * @return bool
37
     */
38 78
    public function acceptsLines()
39
    {
40 78
        return false;
41
    }
42
43
    /**
44
     * Whether this is a code block
45
     *
46
     * @return bool
47
     */
48 78
    public function isCode()
49
    {
50 78
        return false;
51
    }
52
53 33
    public function matchesNextLine(Cursor $cursor)
54
    {
55 33
        return false;
56
    }
57
}
58