HandleMethodInflector   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A inflect() 0 10 2
1
<?php namespace Cairns\Radiate\Inflector;
2
3
final class HandleMethodInflector implements MethodInflector
4
{
5 3
    public function inflect($event, $listener)
6
    {
7 3
        $method = 'handle';
8
9 3
        if (! method_exists($listener, $method)) {
10 1
            return null;
11
        }
12
13 2
        return $method;
14
    }
15
}
16