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

ClosedElement   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 50%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A addChild() 0 4 1
A buildHtml() 0 4 1
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