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

MarkdownConverter::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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