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

ClosedElement::addChild()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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