NullNode   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Test Coverage

Coverage 33.33%

Importance

Changes 0
Metric Value
wmc 3
eloc 4
dl 0
loc 15
c 0
b 0
f 0
ccs 2
cts 6
cp 0.3333
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A jsonSerialize() 0 3 1
A getValue() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace DaveRandom\Jom;
4
5
final class NullNode extends Node
6
{
7 99
    public function __construct(?Document $ownerDocument = null)
8
    {
9 99
        parent::__construct($ownerDocument);
10
    }
11
12
    public function jsonSerialize()
13
    {
14
        return null;
15
    }
16
17
    public function getValue()
18
    {
19
        return null;
20
    }
21
}
22