Completed
Push — refactor-parsing ( adbb6b...fbe6de )
by Colin
08:21 queued 07:01
created

AbstractBlockContinueParser::canContain()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of the league/commonmark package.
5
 *
6
 * (c) Colin O'Dell <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace League\CommonMark\Parser\Block;
13
14
use League\CommonMark\Node\Block\AbstractBlock;
15
use League\CommonMark\Parser\InlineParserEngineInterface;
16
17
/**
18
 * Base class for a block parser
19
 *
20
 * Slightly more convenient to extend from vs. implementing the interface
21
 */
22
abstract class AbstractBlockContinueParser implements BlockContinueParserInterface
23
{
24 978
    public function isContainer(): bool
25
    {
26 978
        return false;
27
    }
28
29 111
    public function canHaveLazyContinuationLines(): bool
30
    {
31 111
        return false;
32
    }
33
34 75
    public function canContain(AbstractBlock $childBlock): bool
35
    {
36 75
        return false;
37
    }
38
39 267
    public function addLine(string $line): void
40
    {
41 267
    }
42
43 2493
    public function closeBlock(): void
44
    {
45 2493
    }
46
47 2493
    public function parseInlines(InlineParserEngineInterface $inlineParser): void
48
    {
49 2493
    }
50
}
51