Completed
Pull Request — master (#61)
by Vladimir
09:45
created

PlainTextEngine   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

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