SchemaLoadingException   A
last analyzed

Coupling/Cohesion

Components 0
Dependencies 0

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
A notFound() 0 4 1
1
<?php
2
3
namespace League\JsonReference;
4
5
final class SchemaLoadingException extends \RuntimeException
6
{
7 10
    public static function create($path)
8
    {
9 10
        return new static(sprintf('The schema "%s" could not be loaded.', $path));
10
    }
11
12 8
    public static function notFound($path)
13
    {
14 8
        return new static(sprintf('The schema "%s" could not be found.', $path));
15
    }
16
}
17