Reflector::getNameForClass()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
crap 2
1
<?php
2
3
4
namespace Jarobe\TaskRunnerBundle\Hydrator;
5
6
use Jarobe\TaskRunnerBundle\TaskType\TaskTypeInterface;
7
8
class Reflector
9
{
10
    /**
11
     * @param TaskTypeInterface $taskType
12
     * @return string
13
     */
14
    public function getNameForClass($taskType)
15
    {
16
        return $taskType::getName();
17
    }
18
}
19