Passed
Pull Request — master (#79)
by David
02:19
created

InvalidCacheItemException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Cache;
5
6
7
class InvalidCacheItemException extends \Exception
8
{
9
    public static function create(string $name): self
10
    {
11
        return new self(sprintf('Cache item "%s" does not implement the SelfValidatingCacheInterface.', $name));
12
    }
13
}