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

Text::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 4
Bugs 0 Features 2
Metric Value
c 4
b 0
f 2
dl 4
loc 4
ccs 3
cts 3
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 2
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