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

ClosedElement::toString()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 8
ccs 0
cts 7
cp 0
rs 9.4285
cc 3
eloc 4
nc 2
nop 3
crap 12
1
<?php
2
3
namespace Groundskeeper\Tokens\Elements;
4
5
use Groundskeeper\Configuration;
6
use Groundskeeper\Tokens\Token;
7
8
class ClosedElement extends Element
9
{
10
    /**
11
     * Reimplement addChild so that no children can be added.
12
     */
13
    public function addChild(Token $token)
14
    {
15
        return $this;
16
    }
17
18 4
    protected function buildHtml($prefix, $suffix)
19
    {
20 4
        return $this->buildStartTag($prefix, $suffix);
21
    }
22
}
23