Completed
Push — master ( d44ef5...c7e879 )
by Fèvre
12s
created

ReplyExtension::getBlockRenderers()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
namespace Xetaravel\Markdown\Reply;
3
4
use League\CommonMark\Extension\Extension;
5
6
class ReplyExtension extends Extension
7
{
8
    /**
9
     * Returns a list of block parsers to add to the existing list.
10
     *
11
     * @return array
12
     */
13
    public function getBlockParsers()
14
    {
15
        return [
16
            new ReplyParser(),
17
        ];
18
    }
19
20
    /**
21
     * Returns a list of block renderers to add to the existing list.
22
     *
23
     * @return array
24
     */
25
    public function getBlockRenderers()
26
    {
27
        return [
28
            Reply::class => new ReplyRenderer(),
29
        ];
30
    }
31
}
32