Completed
Push — 1.6 ( bb055d )
by Colin
01:28
created

MarkdownConverter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 0
loc 17
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getEnvironment() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the league/commonmark package.
7
 *
8
 * (c) Colin O'Dell <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
namespace League\CommonMark;
14
15
class MarkdownConverter extends Converter
0 ignored issues
show
Deprecated Code introduced by
The class League\CommonMark\Converter has been deprecated with message: This class is deprecated since league/commonmark 1.4, use MarkdownConverter instead.

This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.

Loading history...
16
{
17
    /** @var EnvironmentInterface */
18
    protected $environment;
19
20 2826
    public function __construct(EnvironmentInterface $environment)
21
    {
22 2826
        $this->environment = $environment;
23
24 2826
        parent::__construct(new DocParser($environment), new HtmlRenderer($environment));
25 2826
    }
26
27 21
    public function getEnvironment(): EnvironmentInterface
28
    {
29 21
        return $this->environment;
30
    }
31
}
32