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

PluginException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A pluginNotFound() 0 3 1
A invalidPlugin() 0 3 1
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