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

NoPathFoundException::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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