Nothing::__toString()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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