Completed
Push — master ( 0b908e...886262 )
by Kevin
02:30
created

Text::toString()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

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