1<?php
2
3declare(strict_types=1);
4
5/*
6 * This file is part of the league/commonmark package.
7 *
8 * (c) Colin O'Dell <colinodell@gmail.com>
9 *
10 * For the full copyright and license information, please view the LICENSE
11 * file that was distributed with this source code.
12 */
13
14namespace League\CommonMark;
15
16class MarkdownConverter extends Converter
17{
18    /** @var EnvironmentInterface */
19    protected $environment;
20
21    public function __construct(EnvironmentInterface $environment)
22    {
23        $this->environment = $environment;
24
25        parent::__construct(new DocParser($environment), new HtmlRenderer($environment));
26    }
27
28    public function getEnvironment(): EnvironmentInterface
29    {
30        return $this->environment;
31    }
32}
33