Passed
Pull Request — master (#163)
by Wilmer
19:50 queued 04:50
created

AnyValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 11
rs 10
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\TestUtility;
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