Completed
Push — master ( 62c01b...6e9edd )
by Kevin
02:26
created

Text   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 2
Metric Value
wmc 2
c 4
b 0
f 2
lcom 0
cbo 1
dl 0
loc 18
ccs 5
cts 5
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A toHtml() 0 4 1
1
<?php
2
3
namespace Groundskeeper\Tokens;
4
5
use Groundskeeper\Configuration;
6
7
class Text extends AbstractValuedToken
8
{
9
    /**
10
     * Constructor
11
     */
12 15
    public function __construct(Configuration $configuration, Token $parent = null, $value = null)
13
    {
14 15
        parent::__construct(Token::TEXT, $configuration, $parent, $value);
15 15
    }
16
17
    /**
18
     * Required by the Token interface.
19
     */
20 13
    public function toHtml($prefix, $suffix)
21
    {
22 13
        return $prefix . $this->getValue() . $suffix;
23
    }
24
}
25