Completed
Branch master (5a127a)
by Martin
02:17
created

AttributesExtension::getDocumentProcessors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 2
cts 2
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 1
1
<?php
2
3
/*
4
 * This is part of the webuni/commonmark-attributes-extension package.
5
 *
6
 * (c) Martin Hasoň <[email protected]>
7
 * (c) Webuni s.r.o. <[email protected]>
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Webuni\CommonMark\AttributesExtension;
14
15
use League\CommonMark\Extension\Extension;
16
17
class AttributesExtension extends Extension
18
{
19 5
    public function getBlockParsers()
20
    {
21
        return [
22 5
            new AttributesBlockParser(),
23
        ];
24
    }
25
26 5
    public function getInlineParsers()
27
    {
28
        return [
29 5
            new AttributesInlineParser(),
30
        ];
31
    }
32
33 5
    public function getInlineProcessors()
34
    {
35
        return [
36 5
            new AttributesInlineProcessor(),
37
        ];
38
    }
39
40 5
    public function getDocumentProcessors()
41
    {
42
        return [
43 5
            new AttributesProcessor(),
44
        ];
45
    }
46
}
47