NullNode::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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