Completed
Pull Request — master (#31)
by Tom
02:24
created

UnsupportedFeatureException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A forInflectors() 0 4 1
1
<?php
2
3
namespace TomPHP\ConfigServiceProvider\Exception;
4
5
use LogicException;
6
7
final class UnsupportedFeatureException extends LogicException
8
{
9
    /**
10
     * @param string $containerName
11
     *
12
     * @return self
13
     */
14
    public static function forInflectors($containerName)
15
    {
16
        return new self(sprintf('%s does not support inflectors.', $containerName));
17
    }
18
}
19