Passed
Push — master ( 1ac390...22382b )
by DeGracia
02:33
created

AbstractDictionary   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 6 1
1
<?php
2
3
namespace DeGraciaMathieu\Riddler\Dictionaries;
4
5
abstract class AbstractDictionary
6
{
7 29
    public function getName()
8
    {
9 29
        $path = explode('\\', get_class($this));
10
11 29
        return strtolower(array_pop($path));
12
    }
13
}
14