NoCacheKey   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 5
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A new() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\DBAL\Cache\Exception;
6
7
use Doctrine\DBAL\Cache\CacheException;
8
9
/**
10
 * @psalm-immutable
11
 */
12
final class NoCacheKey extends CacheException
13
{
14
    public static function new() : self
15
    {
16
        return new self('No cache key was set.');
17
    }
18
}
19