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 |
<?php declare(strict_types=1); | |
namespace Aviat\Kilo\Traits; | |
use ReflectionClass; | |
trait ConstList { | |
public static function getConstList(): array | |
{ | |
return (new ReflectionClass(static::class))->getConstants(); | |
} | |
} |