Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
ConstList | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getConstList | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
1 | <?php declare(strict_types=1); |
2 | |
3 | namespace Aviat\Kilo\Traits; |
4 | |
5 | use ReflectionClass; |
6 | |
7 | trait ConstList { |
8 | public static function getConstList(): array |
9 | { |
10 | return (new ReflectionClass(static::class))->getConstants(); |
11 | } |
12 | } |