Completed
Push — master ( 003b5e...76542b )
by Woody
38:06 queued 22:13
created

ConfigurationException::invalidClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1
Metric Value
dl 0
loc 7
ccs 3
cts 3
cp 1
rs 9.4286
cc 1
eloc 4
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Equip\Exception;
4
5
use DomainException;
6
7
class ConfigurationException extends DomainException
8
{
9
    /**
10
     * @param string $spec
11
     *
12
     * @return static
13
     */
14 1
    public static function invalidClass($spec)
15
    {
16 1
        return new static(sprintf(
17 1
            'Configuration class `%s` must implement ConfigurationInterface',
18
            $spec
19
        ));
20
    }
21
}
22