Passed
Branch dev (f56f10)
by Wilmer
04:41 queued 01:34
created

AnyValue::getInstance()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Db\TestSupport;
6
7
final class AnyValue extends CompareValue
8
{
9
    private static self $instance;
10
11
    public static function getInstance(): self
12
    {
13
        if (empty(self::$instance)) {
14
            self::$instance = new self();
15
        }
16
17
        return self::$instance;
18
    }
19
}
20