AbstractMigration::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 6
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * Created by gerk on 28.07.16 17:36
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Data\Migration;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
abstract class AbstractMigration implements Migration
12
{
13
14
    /**
15
     * @return string
16
     */
17
    public function getName()
18
    {
19
        $reflect = new \ReflectionClass($this);
20
21
        return $reflect->getShortName();
22
    }
23
}
24