Completed
Pull Request — master (#87)
by Vladimir
02:24
created

PlainTextEngine   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 71.43%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 5
cts 7
cp 0.7143
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTemplateTag() 0 4 1
A parse() 0 4 1
A getExtensions() 0 6 1
1
<?php
2
3
/**
4
 * @copyright 2018 Vladimir Jimenez
5
 * @license   https://github.com/stakx-io/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\MarkupEngine;
9
10
class PlainTextEngine implements MarkupEngineInterface
11
{
12
    /**
13
     * {@inheritdoc}
14
     */
15 76
    public function getTemplateTag()
16
    {
17 76
        return null;
18
    }
19
20
    /**
21
     * {@inheritdoc}
22
     */
23 76
    public function getExtensions()
24
    {
25
        return [
26 76
            'txt',
27 76
        ];
28
    }
29
30
    /**
31
     * {@inheritdoc}
32
     */
33
    public function parse($content)
34
    {
35
        return $content;
36
    }
37
}
38