CannotCreateService   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
dl 0
loc 10
wmc 1
lcom 0
cbo 0
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A forClass() 0 7 1
1
<?php
2
namespace mxdiModule\Service\Exception;
3
4
class CannotCreateService extends \InvalidArgumentException
5
{
6 2
    public static function forClass($fqcn)
7
    {
8 2
        return new self(sprintf(
9 2
            'No mxdi annotations found inside %s',
10
            $fqcn
11 2
        ));
12
    }
13
}
14