Passed
Pull Request — master (#7)
by Jim
01:46
created

Reflector   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getNameForClass() 0 4 1
1
<?php
2
3
4
namespace Jarobe\TaskRunnerBundle\Hydrator;
5
6
7
use Jarobe\TaskRunnerBundle\TaskType\TaskTypeInterface;
8
9
class Reflector
10
{
11
    /**
12
     * @param TaskTypeInterface $taskType
13
     * @return string
14
     */
15
    public function getNameForClass(TaskTypeInterface $taskType)
16
    {
17
        return $taskType::getName();
18
    }
19
}