Passed
Push — master ( 4cc795...0d286f )
by Brent
02:50
created

PluginException::pluginNotFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Brendt\Stitcher\Exception;
4
5
class PluginException extends \Exception
6
{
7
8
    public static function pluginNotFound($className, $path) {
9
        return new self("Could not find the plugin named `{$className}` in this path: {$path}.");
10
    }
11
12
    public static function invalidPlugin($className) {
13
        return new self("Could not load the plugin named `{$className}` because it doesn't implement the `Brendt\\Stitcher\\Plugin\\Plugin` interface.");
14
    }
15
16
}
17