Completed
Push — master ( 5927eb...1e13db )
by
unknown
04:04
created

SchemaLoadingException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
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\JsonGuard\Exceptions;
4
5
class SchemaLoadingException extends \RuntimeException
6
{
7 6
    public static function create($path)
8
    {
9 6
        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