php-kilo/src/Enum/ConstList.php
2019-11-19 13:48:12 -05:00

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();
}
}