ParsedownParser   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 10
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A parse() 0 2 1
A __construct() 0 2 1
1
<?php declare(strict_types=1);
2
namespace html_go\markdown;
3
4
use Parsedown;
5
6
/**
7
 * Implementation for <code>Parsedown</code>.
8
 * @author Marc L. Veary
9
 * @since 1.0
10
 */
11
final class ParsedownParser implements MarkdownParser
12
{
13
    private Parsedown $parser;
14
15
    public function __construct() {
16
        $this->parser = new Parsedown();
17
    }
18
19
    public function parse(string $text): string {
20
        return $this->parser->parse($text);
21
    }
22
}
23