NullProxy::instance()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Lneicelis\Transformer\ValueObject;
4
5
class NullProxy extends ArrayProxy
6
{
7
    static $instance;
8
9 2
    public static function instance(): self
10
    {
11 2
        return self::$instance = self::$instance ?: new static([]);
12
    }
13
}
14