Completed
Pull Request — master (#22)
by Sergey
04:54
created

Reflection::getShortname()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Isswp101\Persimmon\Helpers;
4
5
use ReflectionClass;
6
7
class Reflection
8
{
9
    public static function getShortname(string $class): string
10
    {
11
        $reflection = new ReflectionClass($class);
12
        return $reflection->getShortName();
13
    }
14
}