Passed
Push — master ( da7dd2...f79e5c )
by Andrey
12:28
created

Reflection   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 10
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getConstants() 0 3 1
A make() 0 3 1
1
<?php
2
3
namespace Helldar\LaravelLangPublisher\Support;
4
5
use ReflectionClass;
6
7
final class Reflection
8
{
9
    public function getConstants(string $class): array
10
    {
11
        return $this->make($class)->getConstants();
12
    }
13
14
    protected function make(string $class)
15
    {
16
        return new ReflectionClass($class);
17
    }
18
}
19