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

Reflector::getNameForClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 1 Features 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 1
b 1
f 0
cc 1
eloc 2
nc 1
nop 1
crap 2
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
}