ResourceNotFound   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A resourceConfigNotFound() 0 3 1
1
<?php
2
3
namespace LaravelPropertyBag\Exceptions;
4
5
use Exception;
6
7
class ResourceNotFound extends Exception
8
{
9
    /**
10
     * Config file for resource can not be found.
11
     *
12
     * @param string $namespace
13
     *
14
     * @return static
15
     */
16
    public static function resourceConfigNotFound($namespace)
17
    {
18
        return new static("Class {$namespace} not found.");
19
    }
20
}
21