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

IndentedCode::finalize()   B

Complexity

Conditions 6
Paths 6

Size

Total Lines 20

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 13
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 20
ccs 13
cts 13
cp 1
rs 8.9777
c 0
b 0
f 0
cc 6
nc 6
nop 2
crap 6
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\Extension\CommonMark\Node\Block;
13
14
use League\CommonMark\Node\Block\AbstractBlock;
15
use League\CommonMark\Node\StringContainerInterface;
16
17
class IndentedCode extends AbstractBlock implements StringContainerInterface
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $literal = '';
23
24 156
    public function getLiteral(): string
25
    {
26 156
        return $this->literal;
27
    }
28
29 156
    public function setLiteral(string $literal): void
30
    {
31 156
        $this->literal = $literal;
32 156
    }
33
}
34