Passed
Pull Request — master (#5)
by Pavel
05:52
created

MetricStorageException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A becauseUnknownKeyInStorage() 0 3 1
1
<?php
2
3
namespace Lamoda\Metric\Storage\Exception;
4
5
class MetricStorageException extends \OutOfBoundsException
6
{
7
    public static function becauseUnknownKeyInStorage(string $key): self
8
    {
9
        return new self(sprintf('Metric "%s" does not exist or is not mutable', $key));
10
    }
11
}
12