12 lines
216 B
PHP
12 lines
216 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Aviat\Kilo\Enum;
|
|
|
|
use ReflectionClass;
|
|
|
|
trait ConstList {
|
|
public static function getConstList(): array
|
|
{
|
|
return (new ReflectionClass(static::class))->getConstants();
|
|
}
|
|
} |