Completed
Push — master ( 5cdc59...756481 )
by Andrew
02:23
created

HandleMethodInflector   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

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 4
    public function inflect($event, $listener)
6
    {
7 4
        $method = 'handle';
8
9 4
        if (! method_exists($listener, $method)) {
10 1
            return null;
11
        }
12
13 3
        return $method;
14
    }
15
}
16