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

AnyValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getInstance() 0 7 2
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