Nothing   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 3
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 18
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __toString() 0 7 2
A describe() 0 4 1
1
<?php
2
3
namespace hemio\html;
4
5
/**
6
 * Empty string
7
 */
8
class Nothing implements Interface_\HtmlCode
9
{
10
11
    use Trait_\HooksToString;
12
13
    public function __toString()
14
    {
15
        foreach ($this->hooksToString as $hook)
16
            $hook($this);
17
18
        return '';
19
    }
20
21
    public function describe()
22
    {
23
        return '(*nothing*)';
24
    }
25
}
26