Completed
Pull Request — 4.2 (#140)
by David
09:39 queued 04:42
created

NoPathFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 4 1
1
<?php
2
3
4
namespace Mouf\Database\TDBM\Utils\PathFinder;
5
6
use Mouf\Database\TDBM\TDBMException;
7
8
/**
9
 * Exception thrown when no path can be mapped to the class name.
10
 */
11
class NoPathFoundException extends TDBMException
12
{
13
    public static function create(string $className)
14
    {
15
        return new self(sprintf('Could not find a path where class %s would be autoloadable. Maybe consider editing your composer.json autoload section accordingly.', $className));
16
    }
17
}
18