Completed
Push — master ( 817727...d8e3ee )
by Kevin
03:58
created

Text::getType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Groundskeeper\Tokens;
4
5
use Groundskeeper\Configuration;
6
7
class Text extends AbstractValuedToken
8
{
9 14
    public function getType()
10
    {
11 14
        return Token::TEXT;
12
    }
13
14
    /**
15
     * Required by the Token interface.
16
     */
17 74
    public function toHtml($prefix, $suffix)
18
    {
19 74
        return $prefix . $this->getValue() . $suffix;
20
    }
21
}
22