Completed
Push — master ( c4ca74...5a127a )
by Martin
05:21
created

AttributesExtension   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 5

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 4
c 2
b 0
f 0
lcom 0
cbo 5
dl 0
loc 30
ccs 8
cts 8
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getBlockParsers() 0 6 1
A getInlineParsers() 0 6 1
A getInlineProcessors() 0 6 1
A getDocumentProcessors() 0 6 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