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

InvalidCacheItemException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
eloc 1
rs 10
nc 1
nop 1
cc 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
}